joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410810
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x44
mov eax, dword [0x57506c]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x18], 0
mov ebx, edx
mov dword [esp + 0x14], ebx
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x410852
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
cmp eax, 0x104
jae 0x4109bd
lea eax, [esp + 0x1c]
push eax
call fcn.00412b60
push 2
push ecx
push 0x5640d8
mov ecx, eax
call fcn.004117b0
lea ecx, [esp + 0x1c]
mov esi, eax
call fcn.00401fe0
cmp esi, 0xffffffff
je 0x4108d5
lea eax, [esp + 0x34]
mov ecx, edi
push eax
call fcn.00412b60
mov esi, eax
mov ecx, edi
push ebx
lea eax, [esp + 0x20]
push eax
call fcn.00412a20
mov edx, esi
mov ecx, eax
call fcn.00410540
add esp, 4
lea ecx, [esp + 0x1c]
mov bl, al
call fcn.00401fe0
lea ecx, [esp + 0x34]
call fcn.00401fe0
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x14], 8
jb 0x4108df
mov eax, dword [edi]
jmp 0x4108e1
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x41083e
test bl, 1
je 0x410919
cmp dword [edi + 0x14], 8
jb 0x410902
mov ecx, dword [edi]
jmp 0x410904
mov ecx, edi
mov eax, ebx
and eax, 0xfffffffe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x4109bd
test bl, 0x10
jne 0x410945
cmp dword [edi + 0x14], 8
jb 0x410926
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x14], 0
je 0x410978
push 0x5640e0
lea ecx, [esp + 0x20]
call fcn.004075f0
mov ebx, 1
lea edx, [esp + 0x1c]
push ebx
mov ecx, edi
call fcn.00410540
add esp, 4
test al, al
jne 0x41097c
mov byte [esp + 0x13], al
jmp 0x410981
mov ebx, dword [esp + 0x18]
mov byte [esp + 0x13], 1
test bl, 1
je 0x41098f
lea ecx, [esp + 0x1c]
call fcn.00401fe0
cmp byte [esp + 0x13], 0
je 0x4109bd
cmp dword [edi + 0x14], 8
jb 0x41099e
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x4c]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
Function at 0x410e90
Capabilities:
Check if file exists
Get file attributes

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

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

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x410eb8
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x410ecb
shr eax, 4
and eax, 1
ret
xor al, al
ret

Function at 0x410ed0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x248
mov eax, dword [0x57506c]
xor eax, esp
mov dword [esp + 0x244], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x34]
push edi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x410fb2
sub esp, 8
lea eax, [esp + 0x40]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x40], 0
jne 0x410f22
xor ecx, ecx
jmp 0x410f3f
lea ecx, [esp + 0x40]
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x410f30
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [esp + 0x28]
call fcn.00412400
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x410f5a
mov ecx, dword [eax]
jmp 0x410f5c
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x10]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00412400
lea ecx, [esp + 8]
call fcn.00413150
lea eax, [esp + 8]
cmp esi, eax
je 0x410f8a
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407b20
lea ecx, [esp + 8]
call fcn.00401fe0
lea ecx, [esp + 0x20]
call fcn.00401fe0
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 0x244]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x24c]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
Function at 0x410fe0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x230
mov eax, dword [0x57506c]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x24]
push edi
push eax
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x41108f
cmp word [esp + 0x28], 0
je 0x41108f
sub esp, 8
lea eax, [esp + 0x30]
mov edx, esp
mov dword [edx], eax
cmp word [esp + 0x30], 0
jne 0x411053
xor ecx, ecx
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00412400
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x30]
lea edi, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x411060
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
mov ecx, esi
call fcn.00412400
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x10]
call fcn.0040ac90
lea eax, [esp + 0x10]
push eax
call fcn.00410ed0
add esp, 4
mov ecx, esi
test al, al
je 0x4110e5
lea eax, [esp + 0xf]
push eax
call fcn.004086a0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4110cd
mov eax, dword [esi]
jmp 0x4110cf
mov eax, esi
xor ecx, ecx
push 0xffffffffffffffff
mov word [eax], cx
lea eax, [esp + 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00407b20
jmp 0x4110fc
sub esp, 8
mov eax, esp
mov dword [eax], 0x5640e4
mov dword [eax + 4], 3
call fcn.00412400
lea ecx, [esp + 0x10]
call fcn.00401fe0
mov ecx, dword [esp + 0x234]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
Function at 0x411120
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x57506c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], 0
mov esi, edx
cmp dword [edi + 0x14], 8
jb 0x41114d
mov ebx, dword [edi]
jmp 0x41114f
mov ebx, edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411191
test al, 0x10
je 0x411173
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x41117d
mov dword [esi], 0xfffffff7
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00412a20
cmp dword [edi + 0x14], 8
jb 0x4111a7
mov eax, dword [edi]
jmp 0x4111a9
mov eax, edi
cmp dword [esp + 0x28], 8
lea ecx, [esp + 0x14]
push dword [edi + 0x10]
cmovae ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x28]
push eax
call fcn.00402dc0
add esp, 8
test eax, eax
jne 0x4111d9
test esi, esi
je 0x41121d
mov dword [esi], 0xfffffffc
xor bl, bl
jmp 0x411223
mov edx, esi
lea ecx, [esp + 0x14]
call fcn.00411120
test al, al
je 0x41121d
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x411221
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0xb7
jne 0x411210
mov ecx, edi
call fcn.00410eb0
test al, al
jne 0x411221
test esi, esi
je 0x41121d
mov ecx, ebx
call fcn.0041ac20
mov dword [esi], eax
xor bl, bl
jmp 0x411223
mov bl, 1
lea ecx, [esp + 0x14]
call fcn.00401fe0
mov ecx, dword [esp + 0x2c]
mov al, bl
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret

Function at 0x4112e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov dword [esp + 8], 0
mov esi, edx
cmp dword [ecx + 0x14], 8
push edi
mov edi, dword [ebp + 8]
jb 0x411300
mov ecx, dword [ecx]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0
call fcn.00411740
mov eax, dword [esp + 8]
test eax, eax
je 0x411351
cmp eax, 0xffffffff
je 0x411351
push 0
lea ecx, [esp + 0x10]
push ecx
push edi
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x411351
mov esi, dword [esp + 0xc]
cmp esi, edi
je 0x411354
or esi, 0xffffffff
lea ecx, [esp + 8]
call fcn.004116d0
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x25c
mov eax, dword [0x57506c]
xor eax, esp
mov dword [esp + 0x258], eax
xor eax, eax
push esi
mov word [esp + 0x50], ax
mov esi, ecx
lea eax, [esp + 0x50]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x411459
cmp eax, 0x104
ja 0x411459
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0xc]
call fcn.004075f0
sub esp, 8
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 8
mov ecx, esp
cmovae eax, dword [esp + 0x10]
mov dword [ecx], eax
mov eax, dword [esp + 0x20]
mov dword [ecx + 4], eax
lea ecx, [esp + 0x40]
call fcn.00412400
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x4113f9
mov ecx, dword [eax]
jmp 0x4113fb
mov ecx, eax
mov dword [edx], ecx
lea ecx, [esp + 0x28]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00412400
lea ecx, [esp + 0x20]
call fcn.00413150
lea eax, [esp + 0x20]
cmp esi, eax
je 0x411429
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00407b20
lea ecx, [esp + 0x20]
call fcn.00401fe0
lea ecx, [esp + 0x38]
call fcn.00401fe0
lea ecx, [esp + 8]
call fcn.00401fe0
mov al, 1
pop esi
mov ecx, dword [esp + 0x258]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x25c]
xor al, al
pop esi
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ecx
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.004130c0
test al, al
jne 0x4114dc
mov ecx, esi
call fcn.004130c0
test al, al
jne 0x4114dc
cmp dword [edi + 0x10], 0x104
jae 0x4114dc
cmp dword [esi + 0x10], 0x104
jae 0x4114dc
cmp dword [esi + 0x14], 8
jb 0x4114a5
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x4114ad
mov edi, dword [edi]
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x4114dc
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4114dc
test al, 1
je 0x4114d6
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 1
pop edi
pop esi
pop ecx
ret
pop edi
xor al, al
pop esi
pop ecx
ret
Function at 0x4114f0
Capabilities:
Check if file exists
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
mov edi, edx
cmp dword [esi + 0x10], 0x104
jae 0x411582
cmp dword [edi + 0x10], 0x104
jae 0x411582
cmp dword [edi + 0x14], 8
jb 0x411516
mov eax, dword [edi]
jmp 0x411518
mov eax, edi
cmp dword [esi + 0x14], 8
jb 0x411520
mov ecx, dword [esi]
push 3
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x411536
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
push ebx
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], eax
jb 0x41154c
mov eax, dword [esi]
jmp 0x41154e
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x411570
shr eax, 4
and al, 1
je 0x411570
mov edx, edi
mov ecx, esi
call fcn.00411590
mov bl, al
test bl, bl
jne 0x411579
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x412000
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x57506c]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, edx
mov dword [ebp - 0x58], 0
push edi
sub esp, 8
mov edi, ecx
mov edx, esp
mov eax, dword [esi]
cmp dword [eax + 0x14], 8
jb 0x412035
mov ecx, dword [eax]
jmp 0x412037
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x50]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.00412400
lea eax, [ebp - 0x51]
push eax
lea ecx, [ebp - 0x20]
call fcn.004086a0
xor eax, eax
mov dword [ebp - 0xc], 7
push 0xffffffffffffffff
push eax
mov word [ebp - 0x20], ax
lea ecx, [ebp - 0x20]
lea eax, [ebp - 0x50]
mov dword [ebp - 0x10], 0
push eax
call fcn.00407b20
lea ecx, [ebp - 0x50]
call fcn.00401fe0
push ecx
lea eax, [ebp - 0x38]
mov ecx, esi
push eax
call fcn.00415440
cmp dword [ebx + 0x14], 0
jne 0x412094
xor esi, esi
jmp 0x41209f
cmp dword [ebx + 0x18], 8
lea esi, [ebx + 4]
jb 0x41209f
mov esi, dword [esi]
push 0x3c
lea eax, [ebp - 0x94]
push 0
push eax
call fcn.004ac860
add esp, 0xc
mov dword [ebp - 0x94], 0x3c
mov dword [ebp - 0x90], 0x40
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp dword [ebp - 0xc], 8
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x20]
cmovae eax, dword [ebp - 0x20]
cmp dword [ebp - 0x24], 8
mov dword [ebp - 0x84], eax
lea eax, [ebp - 0x38]
cmovae eax, dword [ebp - 0x38]
xor ecx, ecx
cmp byte [ebx + 0x1c], cl
mov dword [ebp - 0x80], eax
mov eax, 5
cmovne eax, ecx
mov dword [ebp - 0x88], 0x5640f4
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x94]
push eax
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x74], ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x412144
lea ecx, [edi + 4]
mov byte [edi], al
push eax
mov dword [ecx], eax
call fcn.00411740
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
test eax, eax
jne 0x412174
cmp byte [0x58bd78], 0
je 0x412173
jmp 0x412197
cmp byte [ebx], 0
je 0x412154
push 0xffffffffffffffff
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x5c]
lea ecx, [edi + 4]
mov byte [edi], 0
push esi
mov dword [ecx], 0
call fcn.00411740
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp esi, eax
jmp 0x412137
int3
lea ecx, [ebp - 0x38]
call fcn.00401fe0
lea ecx, [ebp - 0x20]
call fcn.00401fe0
mov ecx, dword [ebp - 8]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00469c8e
mov esp, ebp
pop ebp
ret
push 1
call fcn.004b50b4
int3
Function at 0x415280
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x57506c]
xor eax, ebp
mov dword [ebp - 8], eax
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x20]
push edi
mov dword [ebp - 0x24], 0
mov edi, dword [0x58bc5c]
call fcn.0040ac90
mov edx, 0x564430
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4152b2
sub edx, ecx
lea eax, [ebp - 0x20]
sar edx, 1
mov ecx, esi
push edx
push 0x564430
push eax
call fcn.00418550
add esp, 0xc
cmp dword [ebp - 0x10], 0
je 0x41530c
cmp dword [ebp - 0xc], 8
lea ecx, [ebp - 0x24]
lea eax, [ebp - 0x20]
mov dword [ebp - 0x24], 0
cmovae eax, dword [ebp - 0x20]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov esi, eax
mov ecx, edi
push esi
push dword [ebp - 0x24]
call fcn.00414ae0
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea ecx, [ebp - 0x20]
call fcn.00401fe0
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 4

Function at 0x417160
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0xc]
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
mov eax, dword [edx + ecx*8]
add ecx, ecx
mov ebx, dword [edx + ecx*4]
lea edx, [edx + ecx*4]
cmp ebx, esi
jne 0x4171bb
mov ecx, esi
jmp 0x4171c0
mov ecx, dword [edx + 4]
mov ecx, dword [ecx]
cmp eax, ecx
je 0x4171e5
mov ecx, dword [eax + 8]
cmp ecx, dword [edi]
je 0x4171cf
mov eax, dword [eax]
jmp 0x4171b3
mov ecx, dword [edi]
cmp ecx, dword [eax + 8]
mov ecx, dword [ebp + 8]
cmovne eax, esi
pop edi
pop esi
mov dword [ecx], eax
mov eax, ecx
pop ebx
pop ebp
ret 8
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x417500
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi]
xor eax, 0x811c9dc5
mov esi, dword [ebx + 4]
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 3]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
mov dword [ebp + 0xc], edx
mov eax, dword [ecx + edx]
cmp esi, eax
je 0x417571
mov esi, dword [ecx + edx + 4]
mov esi, dword [esi]
cmp esi, eax
je 0x417571
mov ecx, dword [edi]
mov esi, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4175b5
cmp esi, eax
jne 0x417565
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
cmp esi, eax
je 0x41759e
mov ecx, dword [edi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], esi
mov ecx, dword [esi + 4]
mov dword [ecx], edi
mov edx, dword [esi + 4]
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov dword [edi + 4], edx
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp eax, dword [ebx + 4]
jne 0x4175eb
mov dword [ecx], edi
mov eax, dword [ebx + 0xc]
mov dword [edx + eax + 4], edi
jmp 0x41760d
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 4]
mov eax, dword [edi]
mov dword [ecx], eax
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea ecx, [edi + 0xc]
dec dword [ebx + 8]
call fcn.00401fe0
push edi
call fcn.0048ac22
mov eax, dword [ebp + 8]
add esp, 4
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 0
pop ebx
pop ebp
ret 0xc
cmp eax, esi
jne 0x4175f3
mov dword [ecx], edi
jmp 0x41760d
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, edi
je 0x41760d
mov ecx, dword [ebx + 0xc]
mov eax, dword [ecx + edx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + edx + 4], eax
mov ecx, ebx
call fcn.00417630
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 1
pop ebx
pop ebp
ret 0xc
Function at 0x417d10
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1010
call fcn.0046aa00
mov eax, dword [0x57506c]
xor eax, esp
mov dword [esp + 0x100c], eax
mov eax, dword [ebp + 8]
lea edx, [esp]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0xc], 0
push edx
lea edx, [esp + 0x14]
mov dword [esp + 0x14], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [esp + 0x20], 0x800
call dword [0x53f9d0]
mov esi, eax
test esi, esi
jne 0x417e57
mov ecx, dword [esp + 0xc]
cmp ecx, 1
jne 0x417de4
cmp word [esp + 0x10], ax
jne 0x417da8
xor ecx, ecx
lea eax, [esp + 0x10]
push ecx
push eax
mov ecx, edi
call fcn.004077d0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 8
lea ecx, [esp + 0x10]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x417db0
sub ecx, edx
lea eax, [esp + 0x10]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004077d0
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x417e52
push 0x400
lea eax, [esp + 0x814]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [esp + 8], eax
test eax, eax
je 0x417e37
cmp eax, 0x400
ja 0x417e37
lea eax, [esp + 0x810]
mov ecx, edi
push eax
call fcn.00407780
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 8
mov eax, 0xea
pop edi
pop esi
mov ecx, dword [esp + 0x100c]
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
xor ecx, esp
call fcn.00469c8e
mov esp, ebp
pop ebp
ret 8

Function at 0x4196b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
mov byte [ebp - 1], 0
push esi
push edi
mov ecx, 0x40
mov esi, 0x5641d0
mov edi, ebx
mov dword [ebx + 0x200], 1
mov dword [ebx + 0x204], 1
mov word [ebx + 0x208], 0
rep movsd dword es:[edi], dword [esi]
xor esi, esi
mov edi, edx
nop
xor edx, edx
mov cl, byte [esi + ebx]
mov eax, esi
div dword [ebp + 8]
movzx eax, byte [edx + edi]
mov dl, byte [ebp - 1]
add al, cl
add dl, al
mov byte [ebp - 1], dl
movzx edx, dl
movzx eax, byte [edx + ebx]
mov byte [esi + ebx], al
inc esi
mov byte [edx + ebx], cl
cmp esi, 0x100
jb 0x4196f0
lea edi, [ebx + 0x100]
mov esi, ebx
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x419740
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [edi + 0x200]
sub edx, eax
mov bh, byte [edi + 0x208]
add ecx, eax
sub esi, eax
mov dword [ebp - 4], ecx
mov dword [ebp + 8], esi
cmp eax, ecx
jae 0x4197a5
sub edx, esi
mov dword [ebp + 0xc], edx
movzx esi, al
mov bl, byte [esi + edi]
add bh, bl
movzx edx, bh
movzx ecx, byte [edx + edi]
mov byte [esi + edi], cl
mov byte [edx + edi], bl
movzx ecx, byte [esi + edi]
mov edx, dword [ebp + 8]
add cl, bl
mov esi, dword [ebp + 0xc]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + edi]
xor cl, byte [esi + edx]
mov byte [edx], cl
cmp eax, dword [ebp - 4]
jb 0x419770
mov byte [edi + 0x208], bh
mov dword [edi + 0x200], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4197c0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xc], edi
mov eax, dword [edi + 0x204]
lea esi, [edi + 0x100]
sub dword [ebp + 8], eax
add ecx, eax
mov bh, byte [edi + 0x209]
sub edx, eax
mov dword [ebp - 4], esi
mov dword [ebp - 8], ecx
cmp eax, ecx
jae 0x41983a
sub edx, dword [ebp + 8]
mov edi, edx
nop dword [eax]
mov edx, dword [ebp - 4]
movzx ecx, al
add esi, ecx
mov bl, byte [esi]
add bh, bl
movzx ecx, bh
add edx, ecx
movzx ecx, byte [edx]
mov byte [esi], cl
mov byte [edx], bl
movzx ecx, byte [esi]
mov edx, dword [ebp + 8]
add cl, bl
mov esi, dword [ebp - 4]
add edx, eax
movzx ecx, cl
inc eax
movzx ecx, byte [ecx + esi]
xor cl, byte [edi + edx]
mov byte [edx], cl
cmp eax, dword [ebp - 8]
jb 0x419800
mov edi, dword [ebp - 0xc]
mov byte [edi + 0x209], bh
mov dword [edi + 0x204], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret