joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10004770
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
cmp eax, 0xffffffbb
cmp eax, 0xd2656e0f
inc eax
mov eax, ecx
mov eax, 0x6ad2a5b8
mov eax, 0x1eb14f1d
mov eax, 0xccd60c99
inc eax
nop
mov eax, ebx
cmp eax, 0xede4e640
cmp eax, 0xcd5f3d07
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
nop
nop
cmp eax, 0x71
cmp eax, 0xc385f252
mov eax, ebx
mov eax, 0x93a44ba3
nop
cmp eax, 0xffffffbe
inc eax
cmp eax, 0x5342a53
inc eax
mov eax, ecx
nop
mov eax, ebx
mov eax, 0xb7164faa
cmp eax, 0x43
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov eax, ebx
cmp eax, 0x5ba4c19
inc eax
cmp eax, 0x16
mov eax, ecx
inc eax
mov eax, 0xd416340c
mov eax, 0x6c3e79f9
mov eax, ecx
inc eax
cmp eax, 0x2b
mov eax, ecx
inc eax
cmp eax, 0x7d3efd48
mov eax, ebx
nop
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
push 0x1002beb4
lea ecx, [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, ecx
inc eax
mov eax, ecx
inc eax
cmp eax, 0x1125d196
inc eax
cmp eax, 0xffffffc4
mov eax, 0xa58f58b4
mov eax, 0xc2b9c4a8
mov eax, ecx
cmp eax, 0xffffff80
nop
nop
mov eax, ebx
mov eax, ecx
mov eax, ecx
mov eax, ebx
mov eax, ebx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1003e22c], eax
cmp eax, 0x64034f4c
mov eax, ebx
mov eax, ecx
inc eax
mov eax, ebx
mov eax, 0xd94c6ac0
cmp eax, 0x1da185f3
inc eax
mov eax, ecx
inc eax
inc eax
cmp eax, 0x1f7c55b
mov eax, 0x969b6873
mov eax, ebx
inc eax
inc eax
nop
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
jne 0x1000491f
push 0x41030
push str.DllWrap
push str.miss
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
nop
mov eax, ecx
mov eax, 0xbb89454d
mov eax, ebx
inc eax
mov eax, 0xe2b2334f
mov eax, 0xfef70573
mov eax, ebx
mov eax, 0xc1925d5e
cmp eax, 0x2fceeef2
nop
mov eax, ebx
nop
mov eax, ecx
nop
mov eax, ecx
push 3
push 2
push 1
call fcn.1000c1f0
add esp, 0xc
cmp dword [0x1003e22c], 0
je 0x10004931
mov dword [ebp - 4], 1
jmp 0x10004938
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x40614b
Capabilities:
Create pipe
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x559c58]
mov ecx, dword [0x558bac]
sub esp, 0xe84
push ebx
push esi
shr eax, 3
xor esi, esi
push edi
cmp eax, esi
jbe 0x40624e
mov ebx, ecx
mov dword [ebp - 8], eax
cmp dword [0x559c58], 0x959
jne 0x40623c
lea eax, [ebp - 0x18]
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_PeekConsoleInputA]
xor eax, eax
mov word [ebp - 4], ax
lea edi, [ebp - 2]
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
push esi
push esi
lea eax, [ebp - 0x680]
push eax
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesA]
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_SetConsoleWindowInfo]
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push 0x405910
push esi
push esi
call dword [sym.imp.KERNEL32.dll_OpenWaitableTimerW]
push esi
push esi
push esi
push esi
push esi
push esi
push 0x405968
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
lea eax, [ebp - 0xe80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_InterlockedFlushSList]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push ebx
call fcn.00405f58
add ebx, 8
dec dword [ebp - 8]
jne 0x406174
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40884b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a8718]
jne 0x408855
repz ret
jmp fcn.004100ec

Function at 0x411e67
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.00409fcd
and dword [ebp - 4], 0
cmp dword [0x4aa7a0], 0
mov ebx, eax
jne 0x411f18
push 0x40391c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x411fc9
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403910
push edi
call esi
test eax, eax
je 0x411fc9
push eax
call fcn.00409f5b
mov dword [esp], 0x403900
push edi
mov dword [0x4aa7a0], eax
call esi
push eax
call fcn.00409f5b
mov dword [esp], 0x4038ec
push edi
mov dword [0x4aa7a4], eax
call esi
push eax
call fcn.00409f5b
mov dword [esp], 0x4038d0
push edi
mov dword [0x4aa7a8], eax
call esi
push eax
call fcn.00409f5b
pop ecx
mov dword [0x4aa7b0], eax
test eax, eax
je 0x411f18
push 0x4038b8
push edi
call esi
push eax
call fcn.00409f5b
pop ecx
mov dword [0x4aa7ac], eax
mov eax, dword [0x4aa7ac]
cmp eax, ebx
je 0x411f70
cmp dword [0x4aa7b0], ebx
je 0x411f70
push eax
call fcn.00409fd6
push dword [0x4aa7b0]
mov esi, eax
call fcn.00409fd6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x411f70
test edi, edi
je 0x411f70
call esi
test eax, eax
je 0x411f67
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x411f67
test byte [ebp - 0xc], 1
jne 0x411f70
or dword [ebp + 0x10], 0x200000
jmp 0x411fa9
mov eax, dword [0x4aa7a4]
cmp eax, ebx
je 0x411fa9
push eax
call fcn.00409fd6
pop ecx
test eax, eax
je 0x411fa9
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x411fa9
mov eax, dword [0x4aa7a8]
cmp eax, ebx
je 0x411fa9
push eax
call fcn.00409fd6
pop ecx
test eax, eax
je 0x411fa9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4aa7a0]
call fcn.00409fd6
pop ecx
test eax, eax
je 0x411fc9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x411fcb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c7fb
Capabilities:
Encode data using xor

Disassembly:
adc byte [ecx + 0x38fcfcfc], bl
or al, 0x10
adc al, 0x18
arpl word [ecx + 0x2036f8b3], di
and al, 0x28
sub al, 0x30
xor al, 0x1c
xor al, 0x1c
cmp byte [eax + 0x46c72c], bh
mov eax, 0x46c72c
push eax
push dword fs:[0]
mov dword fs:[0], esp
and eax, 0
xor eax, eax
mov dword [eax], ecx
push eax
inc ebp
inc ebx
outsd dx, dword [esi]
insd dword es:[edi], dx
jo 0x40c87b
arpl word [edx + esi], si
je 0x40c898
inc ecx
sub al, 0x61
jl 0x40c7dc
sub byte [ecx], 0xcb
bound eax, qword [edi - 0x7c]
ja 0x40c80a
jno 0x40c7f7
mov byte [eax + edx*4 + 0x1dc771dc], cl
xchg esp, eax
cwde
pushfd
adc al, 0xc6
sbb eax, 0xa8a4a077
xchg edx, eax
sub al, 0x61
sub al, 0x81
dec esp
aad 0xf3
xor eax, 0x83d40ca8
cmp eax, dword [0x290d2ef8]
jae 0x40c83c
pop ebp
in eax, dx
push 0x38c2fc19
daa
arpl word [ebx], di
das
dec edi
sub al, 0x67
dec esi
hlt
sbb byte [eax], dl
sbb al, 0x14
invalid
mov eax, dword [0x3702acb1]
mov cl, 0xac
add dh, byte [edi]
sal byte [eax], 0x22
or dword [edi], ecx
stosd dword es:[edi], eax
add al, 0x24
jmp 0x40c897

Function at 0x408951
Capabilities:
Encode data using xor

Disassembly:
mov ebx, 0x4085d8
push 0x1df827da
pop edx
add edx, 0xcaad1c73
call fcn.00408988
sub edx, eax
add eax, edx
xor dword [esi], ebx
add eax, 0x7e66f2ee
mov edx, eax
inc esi
add edx, 0x63a722e4
cmp esi, ecx
jne fcn.00408951
dec eax
ret
Function at 0x401a00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x82c
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x82c], 0
push esi
mov word [ebp - 0x824], ax
mov esi, ecx
lea eax, [ebp - 0x824]
mov dword [ebp - 0x828], esi
push eax
push 0x410
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x824], ax
jne 0x401a61
xor ecx, ecx
jmp 0x401a7f
lea ecx, [ebp - 0x824]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401a70
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x824]
mov ecx, esi
push eax
call fcn.0040bb20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00456d98
mov esp, ebp
pop ebp
ret
Function at 0x401e30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4587e2
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x21c], esi
mov dword [ebp - 0x220], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x224], esi
mov dword [esi + 0x10], 0
jb 0x401e9a
mov eax, dword [esi]
jmp 0x401e9c
mov eax, esi
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push 0x23
push ecx
mov dword [ebp - 0x220], 1
mov dword [ebp - 0x21c], ecx
call dword [sym.imp.SHELL32.dll_SHGetFolderLocation]
test eax, eax
lea eax, [ebp - 0x218]
push eax
js 0x401f2c
push dword [ebp - 0x21c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x401f1e
cmp word [ebp - 0x218], 0
jne 0x401eef
xor ecx, ecx
jmp 0x401f0f
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f00
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040bb20
push dword [ebp - 0x21c]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x401f73
push 1
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x401f73
cmp word [ebp - 0x218], 0
jne 0x401f4c
xor ecx, ecx
jmp 0x401f64
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401f55
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.0040bb20
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x401fbe
cmp dword [esi + 0x14], 8
jb 0x401f84
mov eax, dword [esi]
jmp 0x401f86
mov eax, esi
cmp word [eax + ecx*2 - 2], 0x5c
jne 0x401fbe
lea eax, [ecx - 1]
cmp eax, ecx
ja 0x401fb2
mov dword [esi + 0x10], eax
cmp dword [esi + 0x14], 8
jb 0x401fa8
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x401fbe
mov ecx, esi
xor edx, edx
mov word [ecx + eax*2], dx
jmp 0x401fbe
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.0040b0b0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret
Function at 0x401fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov esi, ecx
push 0
push eax
mov dword [ebp - 0x210], esi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x40204e
xor ecx, ecx
jmp 0x402066
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x402057
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.0040bb20
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.00456d98
mov esp, ebp
pop ebp
ret

Function at 0x4022f0
Capabilities:
Delete file
Set file attributes

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x4022fd
mov eax, dword [esi]
jmp 0x4022ff
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x402331
cmp dword [esi + 0x14], 8
jb 0x402314
mov eax, dword [esi]
jmp 0x402316
mov eax, esi
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [esi + 0x14], 8
jb 0x40232a
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
pop esi
sete al
ret
Function at 0x402450
Capabilities:
Check if file exists
Get disk size
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4588ab
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
jb 0x402496
mov eax, dword [esi]
jmp 0x402498
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40258f
test al, 0x10
je 0x40258f
lea eax, [ebp - 0x38]
xorps xmm0, xmm0
push eax
mov ecx, esi
movlpd qword [ebp - 0x18], xmm0
call fcn.00401d30
push esi
lea ecx, [ebp - 0x38]
mov dword [ebp - 4], 0
call fcn.00401c70
test eax, eax
jne 0x402505
cmp dword [ebp - 0x24], 8
lea ecx, [ebp - 0x20]
push 0
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x40255d
cmp dword [esi + 0x14], 8
jb 0x40250d
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x50]
call fcn.004015a0
push ecx
push 0
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 1
push eax
push 0x402420
lea ecx, [ebp - 0xb0]
call fcn.00402990
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
push ecx
mov ecx, eax
call fcn.00402bb0
lea ecx, [ebp - 0xb0]
call fcn.00402340
mov eax, dword [ebp - 0x3c]
cmp eax, 8
jb 0x40255d
inc eax
push eax
push dword [ebp - 0x50]
call fcn.0040bd10
mov eax, dword [ebp - 0x24]
cmp eax, 8
jb 0x40256f
inc eax
push eax
push dword [ebp - 0x38]
call fcn.0040bd10
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x402597
mov esi, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push connect
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40256f
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push esi
mov dword [ebp - 0x1c], 0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
jmp 0x402575
Function at 0x402990
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x458985
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x46d060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 0x2c], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ecx + 0x30], eax
lea eax, [ecx + 0x34]
mov dword [ebp + 8], eax
lea edi, [eax + 4]
mov dword [eax], 0
mov dword [ebp + 8], edi
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.MSVCP140.dll_private:_static_class_std::locale::_Locimp____cdecl_std::locale::_Init_bool_]
push 1
call ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 2
call fcn.00404710
lea ecx, [edi + 8]
mov dword [edi], eax
call fcn.0040add0
mov dword [edi + 4], eax
mov eax, dword [ebp - 0x10]
add eax, 0x48
mov dword [ebp + 8], eax
lea edi, [eax + 4]
mov dword [eax], 0
mov dword [ebp + 8], edi
push 1
mov byte [ebp - 4], 4
call ebx
mov dword [edi + 0xc], eax
lea ecx, [edi + 8]
mov byte [ebp - 4], 5
call fcn.00404710
lea ecx, [edi + 8]
mov dword [edi], eax
call fcn.0040add0
mov dword [edi + 4], eax
mov byte [ebp - 4], 6
add esp, 4
mov ebx, dword [ebp - 0x10]
mov ecx, ebx
push dword [ebp + 0x10]
mov dword [ebx + 0x5c], 0
call fcn.00402a80
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x403930
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x403961
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x403950
pop edi
mov eax, esi
pop esi
pop ebp
ret 8
Function at 0x40f2a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459428
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40f3cf
cmp byte [ebx + 0x3e], 0
je 0x40f3cf
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
sete al
test al, al
je 0x40f304
xor al, al
jmp 0x40f3d1
sub esp, 8
lea ecx, [ebp - 0x28]
call fcn.00410f10
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
nop dword [eax]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_wchar_t__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40f35c
sub eax, 1
je 0x40f360
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x40f3b8
xor bl, bl
jmp 0x40f3ba
mov byte [ebx + 0x3e], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x40f396
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x40f358
cmp byte [ebx + 0x3e], 0
je 0x40f3b8
test edi, edi
lea edi, [ebx + 0x40]
jne 0x40f320
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0040ac70
jmp 0x40f316
mov bl, 1
cmp esi, 0x10
jb 0x40f3cb
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
call fcn.0040bc80
mov al, bl
jmp 0x40f3d1
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret
Function at 0x40f5d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x459428
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x46d060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x38], 0
je 0x40f6f0
cmp byte [ebx + 0x3d], 0
je 0x40f6f0
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
sete al
test al, al
je 0x40f629
xor al, al
jmp 0x40f6f2
sub esp, 8
lea ecx, [ebp - 0x28]
call fcn.00410f10
mov dword [ebp - 4], 0
mov esi, dword [ebp - 0x14]
lea edi, [ebx + 0x40]
cmp esi, 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x28]
cmovae edx, dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
add eax, edx
push eax
push ecx
mov ecx, dword [ebx + 0x38]
push edi
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x40f67d
sub eax, 1
je 0x40f681
mov esi, dword [ebp - 0x14]
sub eax, 2
je 0x40f6d9
xor bl, bl
jmp 0x40f6db
mov byte [ebx + 0x3d], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp esi, 0x10
mov edi, dword [ebp - 0x2c]
cmovae eax, ecx
sub edi, eax
je 0x40f6b7
push dword [ebx + 0x4c]
cmp esi, 0x10
lea eax, [ebp - 0x28]
push edi
cmovae eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov esi, dword [ebp - 0x14]
add esp, 0x10
cmp edi, eax
jne 0x40f679
cmp byte [ebx + 0x3d], 0
je 0x40f6d9
test edi, edi
lea edi, [ebx + 0x40]
jne 0x40f641
push 0
push 8
lea ecx, [ebp - 0x28]
call fcn.0040ac70
jmp 0x40f63b
mov bl, 1
cmp esi, 0x10
jb 0x40f6ec
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x28]
call fcn.0040bc80
mov al, bl
jmp 0x40f6f2
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00456d98
mov esp, ebp
pop ebp
ret
Function at 0x411980
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4596c8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
push edi
mov eax, dword [0x46d060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [0x46e114]
add ecx, 0x3300
mov dword [ebp - 0x10], ecx
cmp dword [ecx], edx
jne 0x411a4c
mov edi, dword [0x46e130]
or esi, 0xffffffff
cmp dword [0x46e138], 0
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], esi
je 0x411a01
mov ecx, dword [0x46e138]
xor eax, eax
cmp dword [ecx + 4], 2
mov ecx, dword [ebp - 0x10]
setl al
test eax, eax
jne 0x411a01
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edx, dword [0x46e114]
xor esi, esi
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
cmp dword [ecx], edx
jne 0x411a39
mov edx, 0x4115f0
call fcn.004120e0
test eax, eax
je 0x411a39
cmp esi, 0xffffffff
je 0x411a26
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xffffffff
cmp esi, 0xffffffff
je 0x411a4c
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [ebp - 0x10]
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x411b27
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x411a8c
call esi
mov esi, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], esi
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0x46dd5d
push 0x88
call fcn.00457b2d
mov esi, eax
add esp, 8
mov dword [ebp - 0x10], esi
test esi, esi
je 0x411ad3
xorps xmm0, xmm0
movups xmmword [esi], xmm0
movups xmmword [esi + 0x10], xmm0
movups xmmword [esi + 0x20], xmm0
movups xmmword [esi + 0x30], xmm0
movups xmmword [esi + 0x40], xmm0
movups xmmword [esi + 0x50], xmm0
movups xmmword [esi + 0x60], xmm0
movups xmmword [esi + 0x70], xmm0
movq qword [esi + 0x80], xmm0
jmp 0x411ad5
xor esi, esi
test esi, esi
jne 0x411af8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], 0xc
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [edi]
mov edx, esi
call fcn.004121f0
cmp eax, 0xffffffff
jne 0x411b27
push 0x88
push esi
call fcn.00457b7f
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret