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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
mov edi, 1
push eax
mov dword [ebp - 0x194], ecx
mov dword [ebp - 0x198], edx
mov dword [ebp - 0x17c], edi
mov dword [ebp - 0x19c], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x190], ebx
mov byte [ebp - 0x188], bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x180], eax
cmp eax, 0xffffffff
jne 0x498cab
xor esi, esi
jmp 0x498de1
cmp dword [ebp + 0x1c], edi
jne 0x498ce7
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x190]
push eax
push ecx
push esi
call fcn.00498800
add esp, 0xc
test eax, eax
je 0x498cd3
mov dword [ebp - 0x17c], ebx
jmp 0x498dce
mov edx, dword [ebp - 0x190]
mov edi, dword [ebp - 0x18c]
mov dword [ebp - 0x184], edx
jmp 0x498cf0
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x184], esi
mov ecx, edi
and ecx, 0xf
mov eax, edi
je 0x498cfe
sub eax, ecx
add eax, 0x10
add eax, 0x20
push 0x5995a6
push eax
mov dword [ebp - 0x1a0], eax
call fcn.0051f00a
mov esi, eax
add esp, 8
cmp esi, ebx
jne 0x498d26
mov dword [ebp - 0x17c], ebx
jmp 0x498dc1
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x184]
push edi
push eax
lea ebx, [esi + 0x20]
push ebx
call fcn.0051f280
mov ecx, dword [ebp - 0x198]
mov edx, dword [ebp - 0x194]
push ecx
push edx
lea eax, [ebp - 0x178]
push 1
push eax
call fcn.00439e50
push edi
push ebx
lea ecx, [ebp - 0x178]
push ebx
push ecx
call fcn.0041c1c0
mov eax, dword [ebp - 0x1a0]
mov edx, dword [ebp + 0x10]
add esp, 0x2c
push 0
lea ecx, [ebp - 0x19c]
push ecx
push eax
mov dword [esi + 0x10], edx
mov edx, dword [ebp - 0x180]
push esi
push edx
mov dword [esi], 0x54534346
mov dword [esi + 0x18], 1
mov dword [esi + 8], eax
mov dword [esi + 0xc], edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor ebx, ebx
test eax, eax
jne 0x498dc1
mov dword [ebp - 0x17c], eax
cmp esi, ebx
je 0x498dce
push esi
call fcn.0051d230
add esp, 4
mov eax, dword [ebp - 0x180]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x17c]
cmp byte [ebp - 0x188], 0
je 0x498dfd
mov eax, dword [ebp - 0x190]
cmp eax, ebx
je 0x498dfd
push eax
call fcn.0051d538
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x4c3c90
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov eax, 0x22
push edi
mov edi, dword [ebp + 0x20]
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x218], edx
cmp ax, word [esi]
jne 0x4c3d61
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c3ce0
sub eax, edx
sar eax, 1
cmp eax, 0x104
jae 0x4c3d61
push 0x208
lea ecx, [ebp - 0x20c]
push 0
push ecx
call fcn.0051d250
mov eax, esi
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c3d11
sub eax, edx
sar eax, 1
add eax, 0xfffffffe
push eax
lea edx, [esi + 2]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.005248a6
lea ecx, [ebp - 0x20c]
push ecx
call fcn.0041a140
add esp, 0x10
test eax, eax
jne 0x4c3d6c
test edi, edi
je 0x4c3d4e
push esi
call edi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
push esi
call fcn.0041a140
add esp, 4
jmp 0x4c3d43
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 0x210]
push edx
mov edx, dword [ebp - 0x214]
push eax
push ecx
push esi
push edx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x4c3dd0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4c3e00
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4c3e00
push esi
call fcn.0041a140
add esp, 4
test eax, eax
jne 0x4c3e07
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x4c3e00
push esi
call eax
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4c3e10
sub eax, edx
push ebx
mov ebx, dword [ebp + 0xc]
sar eax, 1
test ebx, ebx
je 0x4c3e41
mov ecx, ebx
lea esi, [ecx + 2]
lea esp, [esp]
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4c3e30
sub ecx, esi
sar ecx, 1
jmp 0x4c3e43
xor ecx, ecx
push edi
lea edi, [ecx + eax + 4]
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
push 0x5995a6
neg ecx
or ecx, eax
push ecx
call fcn.0051f00a
mov esi, eax
add esp, 8
test esi, esi
jne 0x4c3e75
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
test ebx, ebx
je 0x4c3e8f
mov eax, dword [ebp + 8]
push ebx
push eax
push str.__s___s
push edi
push esi
call fcn.005267a8
add esp, 0x14
jmp 0x4c3ea2
mov ecx, dword [ebp + 8]
push ecx
push str.__s_
push edi
push esi
call fcn.005267a8
add esp, 0x10
push 0x40
lea edx, [ebp - 0x50]
push 0
push edx
call fcn.0051d250
add esp, 0xc
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov ax, word [ebp + 0x14]
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x54]
push edx
mov word [ebp - 0x24], ax
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
push 0
push 0
push 0
push esi
push 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x54], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edi, eax
test edi, edi
je 0x4c3f1c
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x4c3f0a
mov ecx, dword [ebp - 0x10]
push eax
push ecx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov edx, dword [ebp - 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call ebx
mov eax, dword [ebp - 0x10]
push eax
call ebx
push esi
call fcn.0051d538
add esp, 4
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4dc1d0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c4
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0x24c
lea eax, [ebp - 0x250]
push 0
push eax
mov dword [ebp - 0x254], 0
call fcn.0051d250
add esp, 0xc
push esi
push 0x560120
lea ecx, [ebp - 0x28c]
push edi
push ecx
call fcn.0045e100
add esp, 0xc
push eax
lea edx, [ebp - 0x2a8]
push edx
call fcn.0045e190
mov esi, 8
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x4dc241
mov eax, dword [eax + 4]
jmp 0x4dc244
add eax, 4
lea ecx, [ebp - 0x254]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
cmp dword [ebp - 0x290], esi
jb 0x4dc26b
mov edx, dword [ebp - 0x2a4]
push edx
call fcn.0051d230
add esp, 4
xor eax, eax
mov dword [ebp - 0x290], 7
mov dword [ebp - 0x294], 0
mov word [ebp - 0x2a4], ax
cmp dword [ebp - 0x274], esi
jb 0x4dc29f
mov ecx, dword [ebp - 0x288]
push ecx
call fcn.0051d230
add esp, 4
xor edx, edx
mov dword [ebp - 0x274], 7
mov dword [ebp - 0x278], 0
mov word [ebp - 0x288], dx
cmp ebx, 0xffffffff
jne 0x4dc2d4
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x228]
push eax
push 0x560120
lea ecx, [ebp - 0x2c4]
push edi
push ecx
call fcn.0045e100
add esp, 0xc
push eax
lea edx, [ebp - 0x270]
push edx
call fcn.0045e100
add esp, 0xc
cmp dword [eax + 0x18], esi
jb 0x4dc30a
mov eax, dword [eax + 4]
jmp 0x4dc30d
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x258], esi
jb 0x4dc32b
mov eax, dword [ebp - 0x26c]
push eax
call fcn.0051d230
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x258], 7
mov dword [ebp - 0x25c], 0
mov word [ebp - 0x26c], cx
cmp dword [ebp - 0x2ac], esi
jb 0x4dc35f
mov edx, dword [ebp - 0x2c0]
push edx
call fcn.0051d230
add esp, 4
lea eax, [ebp - 0x254]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4dc2d4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
Function at 0x4dd8c0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x828
mov eax, dword [0x594ccc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
je 0x4dd8f0
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051d23b
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
push eax
call fcn.004c8a10
add esp, 4
mov dword [esi + 0x2c], eax
test eax, eax
je 0x4dd9ce
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SmartUploadCreate
push eax
call edi
mov dword [esi + 0x34], eax
mov eax, dword [esi + 0x2c]
push str.SmartUploadWithExtInfo
push eax
call edi
mov ecx, dword [esi + 0x2c]
push str.SmartUploadCancel
push ecx
mov dword [esi + 0x38], eax
call edi
mov edx, dword [esi + 0x2c]
push str.SmartUploadClose
push edx
mov dword [esi + 0x3c], eax
call edi
mov dword [esi + 0x40], eax
mov eax, dword [esi + 0x2c]
push str.SmartUploadSetNetTimeout
push eax
call edi
mov ecx, dword [esi + 0x2c]
push str.SmartUploadGetError
push ecx
mov dword [esi + 0x44], eax
call edi
cmp dword [esi + 0x34], 0
mov dword [esi + 0x48], eax
pop edi
je 0x4dd9c3
push 0x820
lea edx, [ebp - 0x824]
push 0
push edx
call fcn.0051d250
add esp, 0xc
push str.360TS
push 0x208
lea eax, [ebp - 0x824]
push eax
mov dword [ebp - 0x828], 0x824
call fcn.00436cb0
push 0x56c688
push 0x208
lea ecx, [ebp - 0x61c]
push ecx
call fcn.00436cb0
mov eax, dword [esi + 0x34]
lea edx, [ebp - 0x828]
push edx
call eax
add esp, 4
mov dword [esi + 0x30], eax
xor ecx, ecx
cmp dword [esi + 0x30], ecx
setne cl
mov dword [esi + 0x4c], ecx
cmp dword [esi + 0x4c], 0
jne 0x4dd9db
mov ecx, esi
call fcn.004dd540
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x4c]
xor ecx, ebp
pop esi
call fcn.0051d23b
mov esp, ebp
pop ebp
ret

Function at 0x4dfb50
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.004dd8c0
test eax, eax
je 0x4dfbab
cmp dword [esi + 0x38], 0
je 0x4dfbab
push ebx
push edi
lea edi, [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
test ebx, ebx
pop ebx
je 0x4dfbab
cmp dword [esi + 0x28], 0
jne 0x4dfbab
push 0
push 0
push esi
push 0x4df570
push 0
push 0
mov dword [esi + 0x50], 0
call fcn.005247af
add esp, 0x18
mov dword [esi + 0x28], eax
mov eax, 1
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x40287f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40288e
pop dword [ebp - 0x20]
mov eax, 0x47a49038
add eax, 0xb89b9856
sub dword [ebp - 0x20], eax
mov dword [ebp - 0x30], 0xd5b3bddc
add dword [ebp - 0x30], 0x789e876f
mov dword [ebp - 0x2c], 0x172b4bd4
add dword [ebp - 0x2c], 0x1b080071
mov dword [ebp - 0x28], 0x33d34e56
sub dword [ebp - 0x28], 0xe7870a28
mov dword [ebp - 0x24], 0x9c04d3ad
sub dword [ebp - 0x24], 0x9c04d3ad
lea eax, [ebp - 0x30]
push eax
mov eax, 0x934fcd06
add eax, 0x6cf0b386
add eax, dword [ebp - 0x20]
call dword [eax]
mov dword [ebp - 0x30], 0xff7004f9
add dword [ebp - 0x30], 0x7502645d
mov dword [ebp - 0x2c], 0xd0a379b3
sub dword [ebp - 0x2c], 0x8f37183e
mov dword [ebp - 0x28], 0xea60b621
sub dword [ebp - 0x28], 0x86f149b5
mov dword [ebp - 0x24], 0x2b7b0f12
sub dword [ebp - 0x24], 0x2b7b0f12
lea ebx, [ebp - 0x30]
push ebx
push eax
mov eax, 0x9de6a6c0
add eax, 0x6259da14
add eax, dword [ebp - 0x20]
call dword [eax]
push 0x40
push 0x1000
push 0x3aab2
push 0
call eax
mov ecx, 0x56b90f79
add ecx, 0xa94748d1
mov edx, eax
mov esi, 0x37a39ef2
sub esi, 0x37628ef2
add esi, dword [ebp - 0x20]
mov ebx, 0xdc86cf55
xor dword [ebp - 0xc], esi
mov edi, dword [esi]
add dword [ebp - 4], 0x31773d4f
xor edi, ebx
mov dword [ebp - 8], 0x6898c65c
mov dword [edx], edi
add edx, 0x1fbfed25
sub edx, 0x1fbfed21
add esi, 0x4e1f64c8
add esi, 0xb1e09b3c
loop 0x4029aa
add eax, 0x83b26300
add eax, 0x7c4ef0fb
mov ebx, eax
add eax, 0x4307fb39
sub eax, 0x4307fb34
mov ecx, 0x400000
add ecx, dword [ebp - 0x20]
call ebx
leave
ret
Function at 0x407350
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
pushal
call 0x40735f
pop dword [ebp - 0x20]
mov eax, 0xedc5443e
sub eax, 0xed84d0df
sub dword [ebp - 0x20], eax
push 0x40
push 0x1000
push 0x3e75e
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0x20]
call dword [eax]
mov ecx, 0xa924c875
sub ecx, 0xa9247da2
mov esi, eax
mov edi, 0x435400
add edi, dword [ebp - 0x20]
mov ebx, 0x9f1e103e
add ebx, 0x160b00bc
add dword [ebp - 0x14], eax
mov edx, dword [edi]
xor dword [ebp - 4], edi
sub edx, ebx
mov dword [ebp - 0x18], 0x61702ae6
mov dword [esi], edx
add dword [ebp - 8], 0x872d8069
add esi, 4
add edi, 0x287f5d29
sub edi, 0x287f5d25
loop 0x4073b3
add eax, 0x11e1f
mov ebx, eax
add eax, 5
mov ecx, 0x7f87a4e2
sub ecx, 0x7f47a4e2
add ecx, dword [ebp - 0x20]
call ebx
leave
ret

Function at 0x407875
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42f180]
jne 0x40787f
repz ret
jmp fcn.0040bbd7
Function at 0x401100
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10d4
call fcn.004013f0
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
push 0
push 0
push 3
push 0
push 0
push 0x40000000
push 0x415188
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10c4], eax
cmp dword [ebp - 0x10c4], 0xffffffff
je 0x40114f
jmp 0x40118c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
je 0x401169
push 0x4151a8
call fcn.004010d0
add esp, 4
push 0x3e8
push str..pipe_syelog
call dword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
jne 0x40118a
push str.Could_not_open_pipe
call fcn.004010d0
add esp, 4
jmp 0x401124
mov dword [ebp - 0x10d0], 2
push 0
push 0
lea ecx, [ebp - 0x10d0]
push ecx
mov edx, dword [ebp - 0x10c4]
push edx
call dword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
mov dword [ebp - 0x10c8], eax
cmp dword [ebp - 0x10c8], 0
jne 0x4011ca
push 0x4151f0
call fcn.004010d0
add esp, 4
push 0x100a
push 0
lea eax, [ebp - 0x10bc]
push eax
call fcn.00401f60
add esp, 0xc
cmp dword [ebp + 8], 1
jle 0x4011fc
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
mov dword [ebp - 0x10cc], eax
jmp 0x401206
mov dword [ebp - 0x10cc], str.sltestp:_hello_world_
mov ecx, dword [ebp - 0x10cc]
push ecx
push 0xff6
lea edx, [ebp - 0x10a8]
push edx
call fcn.00401300
mov byte [ebp - 0x10ba], 0x50
mov byte [ebp - 0x10b9], 0x60
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x10b8], eax
lea eax, [ebp - 0x10b4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
lea ecx, [ebp - 0x10a8]
mov dword [ebp - 0x10c0], ecx
jmp 0x401262
mov edx, dword [ebp - 0x10c0]
add edx, 1
mov dword [ebp - 0x10c0], edx
mov eax, dword [ebp - 0x10c0]
movsx ecx, byte [eax]
test ecx, ecx
je 0x401271
jmp 0x401253
mov edx, dword [ebp - 0x10c0]
lea eax, [ebp - 0x10bc]
sub edx, eax
add edx, 1
mov word [ebp - 0x10bc], dx
push 0
lea ecx, [ebp - 0x10d4]
push ecx
movzx edx, word [ebp - 0x10bc]
push edx
lea eax, [ebp - 0x10bc]
push eax
mov ecx, dword [ebp - 0x10c4]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10c8], eax
cmp dword [ebp - 0x10c8], 0
jne 0x4012ca
push 0x415220
call fcn.004010d0
add esp, 4
mov edx, dword [ebp - 0x10c4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004013d3
mov esp, ebp
pop ebp
ret

Function at 0x401c1b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401c5a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401c5a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401c5a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401c5a
cmp dword [ecx + 0x74], 0xe
jbe 0x401c5a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x404a4b
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x404a8a
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x404a8a
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x404a8a
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x404a8a
cmp dword [ecx + 0x74], 0xe
jbe 0x404a8a
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x4082b2
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4166b0
push 0x4166a8
push str.FlsAlloc
push 0x1f
call fcn.00408171
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4082e6
push dword [ebp + 8]
mov ecx, esi
call dword [0x41511c]
call esi
jmp 0x4082ec
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x408330
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4166c0
push 0x4166b8
push str.FlsGetValue
push 0x21
call fcn.00408171
mov esi, eax
add esp, 0x10
test esi, esi
je 0x408367
push dword [ebp + 8]
mov ecx, esi
call dword [0x41511c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x40836f
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x4166c8
push 0x4166c0
push str.FlsSetValue
push 0x22
call fcn.00408171
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4083a9
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x41511c]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x40b932
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b9cf
push ebx
push esi
call fcn.0040b8fb
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b88f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b97c
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b9ce
push edi
push eax
call fcn.00408a61
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b99c
call fcn.00408004
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b9cd
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b88f
add esp, 0x20
test eax, eax
jne 0x40b9bb
push edi
call fcn.00408004
jmp 0x40b9c3
push ebx
call fcn.00408004
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x413a50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413a7d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413a7d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401580
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
mov ecx, dword [0x8c2030]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
xor eax, eax
test ecx, ecx
jle 0x4015b4
lea esi, [edx + ebp]
mov ecx, dword [edi]
mov bl, byte [esi]
xor byte [ecx + eax], bl
add ecx, eax
mov ecx, dword [0x8c2030]
inc eax
add esi, 4
cmp eax, ecx
jl 0x40159d
inc ebp
add edi, 4
cmp ebp, 4
jl 0x401594
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x401630
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
push edi
sub ecx, eax
sub esi, eax
mov edi, 4
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x401648
pop edi
pop esi
pop ebx
ret

Function at 0x401840
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 0x14]
test edi, edi
jbe 0x40186b
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x18]
sub ecx, eax
sub esi, eax
mov dl, byte [ecx + eax]
mov bl, byte [eax]
xor dl, bl
mov byte [esi + eax], dl
inc eax
dec edi
jne 0x40185b
pop esi
pop ebx
pop edi
ret
Function at 0x4026f0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push edi
lea edi, [ebx + 0x44]
mov ecx, 8
mov esi, ebp
push str.expand_32_byte_k
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x20]
lea edi, [ebx + 0x64]
mov eax, esi
mov ecx, edi
mov edx, dword [eax]
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov eax, dword [eax + 8]
mov dword [ecx + 8], eax
call fcn.00402820
push 0x8c2044
mov dword [ebx + 0x74], eax
call fcn.00402820
push 0x8c2048
mov dword [ebx + 0x78], eax
call fcn.00402820
push 0x8c204c
mov dword [ebx + 0x7c], eax
call fcn.00402820
push ebp
mov dword [ebx + 0x80], eax
call fcn.00402820
lea ecx, [ebp + 4]
mov dword [ebx + 0x84], eax
push ecx
call fcn.00402820
lea edx, [ebp + 8]
mov dword [ebx + 0x88], eax
push edx
call fcn.00402820
mov dword [ebx + 0x8c], eax
lea eax, [ebp + 0xc]
push eax
call fcn.00402820
lea ecx, [ebp + 0x10]
mov dword [ebx + 0x90], eax
push ecx
call fcn.00402820
lea edx, [ebp + 0x14]
mov dword [ebx + 0x94], eax
push edx
call fcn.00402820
mov dword [ebx + 0x98], eax
lea eax, [ebp + 0x18]
push eax
call fcn.00402820
add ebp, 0x1c
mov dword [ebx + 0x9c], eax
push ebp
call fcn.00402820
push esi
mov dword [ebx + 0xa0], eax
mov dword [ebx + 0xa4], 0
call fcn.00402820
lea ecx, [esi + 4]
mov dword [ebx + 0xa8], eax
push ecx
call fcn.00402820
lea edx, [esi + 8]
mov dword [ebx + 0xac], eax
push edx
call fcn.00402820
mov dword [ebx + 0xb0], eax
mov eax, dword [esi]
mov dword [edi], eax
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov edx, dword [esi + 8]
add esp, 0x3c
mov dword [edi + 8], edx
pop edi
pop esi
pop ebp
pop ebx
ret