joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4126d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov eax, dword [0x4f002c]
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
call fcn.0041f330
cmp dword [esi + 0x14], 7
mov ebx, esi
jbe 0x4126fa
mov ebx, dword [esi]
mov edi, dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41272c
mov bl, 1
test al, 0x10
jne 0x412805
test edi, edi
je 0x41271d
mov dword [edi], 0xfffffff7
push 0x50
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
jmp 0x412805
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], ebx
mov ecx, esi
push eax
call fcn.00410570
mov eax, dword [esi + 0x10]
cmp dword [ebp - 0x18], eax
jne 0x412780
test eax, eax
je 0x41276f
cmp dword [esi + 0x14], 7
mov ecx, esi
jbe 0x412750
mov ecx, dword [esi]
cmp dword [ebp - 0x14], 7
lea edx, [ebp - 0x28]
jbe 0x41275c
mov edx, dword [ebp - 0x28]
xor edi, edi
nop
movzx ebx, word [edx + edi*2]
cmp bx, word [ecx + edi*2]
jne 0x412780
inc edi
cmp eax, edi
jne 0x412760
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x41277c
mov dword [eax], 0xfffffffc
push 2
jmp 0x4127f5
mov edi, dword [ebp + 0xc]
push edi
lea eax, [ebp - 0x28]
push eax
call fcn.004126d0
add esp, 8
test al, al
je 0x4127fb
push 0
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x4127fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov dword [ebp - 0x44], eax
jne 0x4127e2
lea ecx, [ebp - 0x34]
push 0
call fcn.0041f330
cmp dword [esi + 0x14], 7
jbe 0x4127c7
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x34]
mov esi, eax
call fcn.0041f3e0
cmp esi, 0xffffffff
je 0x4127e2
and esi, 0x10
jne 0x4127fd
mov esi, dword [ebp - 0x44]
test edi, edi
je 0x4127f4
push esi
call fcn.00420a60
add esp, 4
mov dword [edi], eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor ebx, ebx
lea ecx, [ebp - 0x28]
call fcn.0040fa30
lea ecx, [ebp - 0x40]
call fcn.0041f3e0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, ebx
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x412af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x260
mov eax, dword [0x4f002c]
lea ecx, [ebp - 0x26c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
call fcn.0041f330
lea edi, [ebp - 0x218]
mov word [ebp - 0x218], 0
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
cmp eax, 0x103
jbe 0x412b3d
xor ebx, ebx
jmp 0x412c42
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], 0
push edi
call fcn.004b910c
add esp, 4
mov esi, eax
cmp eax, 7
jbe 0x412b8b
sub esp, 0xc
mov al, byte [ebp - 0x248]
lea ecx, [ebp - 0x230]
mov byte [esp + 4], al
mov dword [esp + 8], edi
mov dword [esp], esi
call fcn.00402b9a
jmp 0x412bb0
mov eax, esi
mov dword [ebp - 0x220], esi
lea ecx, [ebp - 0x230]
add eax, esi
push eax
push edi
push ecx
call fcn.004a8990
add esp, 0xc
mov word [ebp + esi*2 - 0x230], 0
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 0x220]
cmp dword [ebp - 0x21c], 7
jbe 0x412bca
mov edx, dword [ebp - 0x230]
jmp 0x412bd0
lea edx, [ebp - 0x230]
lea edi, [ebp - 0x260]
mov ecx, edi
push eax
push edx
call fcn.0040f980
lea ebx, [ebp - 0x248]
mov ecx, edi
push ebx
call fcn.00411360
mov ecx, esi
push ebx
call fcn.0040fb10
mov ecx, ebx
call fcn.0040fa30
mov ecx, edi
call fcn.0040fa30
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x412c40
mov eax, dword [ebp - 0x230]
lea edx, [ecx + ecx + 2]
cmp edx, 0x1000
jb 0x412c36
mov edx, eax
mov eax, dword [eax - 4]
add edx, 0xfffffffc
sub edx, eax
cmp edx, 0x20
jae 0x412c64
add ecx, ecx
add ecx, 0x25
mov edx, ecx
push edx
push eax
call fcn.0048bd31
add esp, 8
mov bl, 1
lea ecx, [ebp - 0x26c]
call fcn.0041f3e0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, ebx
add esp, 0x260
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004b5789
int3

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov eax, dword [0x4f002c]
mov edi, ecx
mov esi, edx
lea ecx, [ebp - 0x1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
call fcn.0041f330
mov ecx, edi
call fcn.00411410
test al, al
jne 0x412d1b
mov ecx, esi
call fcn.00411410
test al, al
jne 0x412d1b
cmp dword [edi + 0x10], 0x103
ja 0x412d1b
cmp dword [esi + 0x10], 0x103
ja 0x412d1b
mov al, byte [ebp + 8]
cmp dword [esi + 0x14], 7
jbe 0x412ce4
mov esi, dword [esi]
cmp dword [edi + 0x14], 7
movzx eax, al
jbe 0x412cef
mov edi, dword [edi]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x412d1b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412d1b
mov bl, 1
test al, 1
je 0x412d1d
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x412d1d
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.0041f3e0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x412d40
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x514
mov eax, ecx
mov ecx, dword [0x4f002c]
lea esi, [ebp - 0x2b4]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
mov ecx, esi
mov dword [ebp - 0x520], edx
push edx
push 3
push 0
push eax
call fcn.004195f0
lea eax, [ebp - 0x2cc]
mov ecx, esi
push eax
call fcn.00419750
cmp dword [ebp - 0x2bc], 0
je 0x412eb8
lea ebx, [ebp - 0x51c]
lea ecx, [ebp - 0x2b4]
xor edi, edi
nop dword [eax + eax]
push ebx
call fcn.004196d0
mov eax, dword [ebp - 0x51c]
test al, 1
je 0x412de7
cmp byte [ebp + 8], 0
jne 0x412dc7
mov ecx, ebx
call fcn.00419390
test al, al
jne 0x412de7
mov eax, dword [ebp - 0x51c]
and eax, 0xfffffffe
cmp dword [ebp - 0x2b8], 7
lea ecx, [ebp - 0x2cc]
jbe 0x412ddf
mov ecx, dword [ebp - 0x2cc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, ebx
call fcn.00419390
test al, al
je 0x412e40
xor esi, esi
cmp byte [ebp + 8], 0
je 0x412e78
mov edx, dword [ebp - 0x520]
lea ecx, [ebp - 0x2cc]
push 1
call fcn.00412d40
add esp, 4
mov esi, eax
test eax, eax
jne 0x412e78
cmp dword [ebp - 0x2b8], 7
lea eax, [ebp - 0x2cc]
jbe 0x412e2b
mov eax, dword [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
mov esi, 0
jne 0x412e78
jmp 0x412e62
cmp dword [ebp - 0x2b8], 7
lea eax, [ebp - 0x2cc]
jbe 0x412e55
mov eax, dword [ebp - 0x2cc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x412e78
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
or eax, 1
mov ecx, 0
cmp eax, 3
cmove esi, ecx
test edi, edi
mov ecx, ebx
cmovne esi, edi
call fcn.004040e0
lea edi, [ebp - 0x2b4]
mov ecx, edi
push ebx
call fcn.00419750
lea ecx, [ebp - 0x2cc]
push ebx
call fcn.0040fb10
mov ecx, ebx
call fcn.0040fa30
cmp dword [ebp - 0x2bc], 0
mov ecx, edi
mov edi, esi
jne 0x412da0
jmp 0x412eba
xor esi, esi
lea ecx, [ebp - 0x2cc]
call fcn.0040fa30
lea ecx, [ebp - 0x2b4]
call fcn.00419620
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, esi
add esp, 0x514
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x413620
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
mov eax, dword [0x4f002c]
xor eax, ebp
mov dword [ebp - 0x10], eax
call fcn.0040ba20
mov esi, eax
mov ecx, eax
push 0x4d07b1
call fcn.0040bd50
test al, al
jne 0x41365e
mov ecx, esi
push str.vmodule
call fcn.0040bd50
test al, al
je 0x413754
cmp dword [0x4f2cb0], 0
jne 0x41383a
mov eax, dword [0x4f2cb4]
mov dword [0x4f2cb0], eax
push 0x10
call fcn.0048bcac
add esp, 4
mov edi, eax
mov dword [ebp - 0x48], str.vmodule
push str.vmodule
call fcn.004b8c80
add esp, 4
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x48]
lea edx, [ebp - 0x28]
mov ecx, esi
push eax
push edx
call fcn.0040be40
mov dword [ebp - 0x50], 0x4d07b1
push 0x4d07b1
call fcn.004b8c80
add esp, 4
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x50]
lea ebx, [ebp - 0x40]
mov ecx, esi
push eax
push ebx
call fcn.0040be40
mov ecx, edi
push 0x4f2cb8
lea eax, [ebp - 0x28]
push eax
push ebx
call fcn.00422910
mov eax, dword [ebp - 0x2c]
mov dword [0x4f2cb4], edi
cmp eax, 0x10
jb 0x41371c
mov ecx, dword [ebp - 0x40]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x413712
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41383f
add eax, 0x24
mov ecx, edx
mov esi, eax
push esi
push ecx
call fcn.0048bd31
add esp, 8
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x413754
mov ecx, dword [ebp - 0x28]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x41374a
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x41383f
add eax, 0x24
mov ecx, edx
mov esi, eax
push esi
push ecx
call fcn.0048bd31
add esp, 8
mov edi, dword [ebp + 8]
mov bl, 1
mov eax, dword [edi]
test al, 1
mov dword [section..data], eax
je 0x413826
mov eax, dword [0x4f2ce0]
test eax, eax
je 0x413782
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x4f2ce0], 0
mov esi, dword [0x4f2cbc]
test esi, esi
jne 0x4137b0
push 0x18
call fcn.0048bcac
add esp, 4
mov esi, eax
mov dword [eax + 0x14], 7
mov dword [eax + 0x10], 0
mov word [eax], 0
mov dword [0x4f2cbc], eax
mov ebx, dword [edi + 4]
push ebx
call fcn.004b910c
add esp, 4
mov edi, eax
mov eax, dword [esi + 0x14]
cmp eax, edi
jae 0x4137df
sub esp, 0xc
mov al, byte [ebp - 0x28]
mov ecx, esi
mov byte [esp + 4], al
mov dword [esp + 8], ebx
mov dword [esp], edi
call fcn.00402b9a
jmp 0x413802
cmp eax, 8
mov ecx, esi
jb 0x4137e8
mov ecx, dword [esi]
mov eax, edi
mov dword [esi + 0x10], edi
add eax, edi
push eax
push ebx
push ecx
mov esi, ecx
call fcn.004a8f10
add esp, 0xc
mov word [esi + edi*2], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0xc], 0
jne 0x41381f
mov eax, dword [0x4f2cbc]
cmp dword [eax + 0x14], 7
jbe 0x413818
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
call fcn.00413850
mov ebx, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, ebx
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
int3
call fcn.004b5789
int3
Function at 0x416750
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
movzx eax, byte [esi]
movzx edx, byte [esi + 1]
xor eax, 0x811c9dc5
imul eax, eax, 0x1000193
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [esi + 2]
xor edx, eax
imul eax, edx, 0x1000193
movzx edx, byte [esi + 3]
mov esi, dword [esi]
xor edx, eax
imul eax, edx, 0x1000193
mov edx, dword [ecx + 0xc]
and eax, dword [ecx + 0x18]
mov ebx, dword [edx + eax*8]
lea eax, [eax + eax + 1]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 4]
mov ecx, ebx
jmp 0x4167b2
mov ecx, dword [ecx]
cmp ebx, eax
mov edi, ebx
je 0x4167c0
mov edi, dword [ebp - 0x14]
mov edi, dword [edx + edi*4]
mov edi, dword [edi]
cmp edi, ecx
je 0x4167d8
cmp dword [ecx + 8], esi
jne 0x4167b0
cmp ecx, eax
je 0x4167d8
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov byte [eax + 4], 0
jmp 0x416835
mov edi, dword [eax]
mov esi, dword [edi + 4]
push 0x24
call fcn.0048bcac
add esp, 4
mov ebx, eax
test edi, edi
mov eax, edi
cmove eax, ebx
lea ecx, [ebx + 0xc]
mov dword [ebx], eax
mov eax, esi
cmove eax, ebx
mov dword [ebx + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
mov dword [ebx + 8], eax
call fcn.0040f840
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + 8]
cmp eax, 0x71c71c6
je 0x41683f
inc eax
mov dword [ecx + 8], eax
mov dword [edi + 4], ebx
mov dword [esi], ebx
mov eax, dword [ecx + 4]
mov eax, dword [eax]
push eax
add eax, 8
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.00416850
mov eax, esi
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
push 0x4cd4d0
call fcn.0048cd08
int3
Function at 0x417320
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov eax, dword [0x4f002c]
mov edi, dword [ebp + 8]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x417346
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x417348
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x417369
mov al, byte [ebp + 0xc]
test al, al
je 0x4173ac
cmp byte [esi + 4], 0
je 0x41739e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4173a0
cmp byte [esi + 4], 0
je 0x417377
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x417379
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x417390
xor ebx, ebx
jmp 0x41741a
cmp byte [esi + 4], 0
je 0x4173da
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4173dc
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [esi + 4], 0
je 0x4173ba
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4173bc
mov eax, dword [esi]
push eax
call fcn.00421050
add esp, 4
mov ecx, dword [0x4f2f18]
mov bl, 1
test ecx, ecx
je 0x41741a
push edi
push eax
call fcn.00424920
jmp 0x41741a
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4173ee
mov edi, dword [ebp - 0x14]
cmp byte [esi + 4], 0
je 0x4173fc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
jmp 0x4173fe
mov eax, dword [esi]
push eax
call fcn.00421050
add esp, 4
mov ecx, dword [0x4f2f18]
test ecx, ecx
je 0x417418
push edi
push eax
call fcn.00424920
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x41b9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ecx]
mov edx, dword [ebp + 0xc]
mov ebx, dword [eax + 4]
lea ecx, [eax + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x24], ecx
cmp byte [ebx + 0xd], 0
je 0x41b9c8
mov dword [ebp - 0x18], eax
jmp 0x41ba49
mov ecx, dword [edx]
mov edx, dword [edx + 4]
mov dword [ebp - 0x18], eax
sub edx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x20], edx
mov eax, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov edi, dword [ebp - 0x20]
sub esi, eax
cmp esi, edi
cmovb edi, esi
setb byte [ebp - 0x1c]
push edi
push dword [ebp - 0x14]
mov dword [ebp - 0x28], eax
push eax
call fcn.004a79dd
add esp, 0xc
test eax, eax
sete cl
test eax, eax
js 0x41ba3e
and byte [ebp - 0x1c], cl
jne 0x41ba3e
mov eax, dword [ebp - 0x10]
cmp byte [eax + 0xd], 0
je 0x41ba39
push edi
push dword [ebp - 0x28]
push dword [ebp - 0x14]
mov edi, eax
call fcn.004a79dd
add esp, 0xc
test eax, eax
mov ecx, edi
cmove ecx, ebx
cmp dword [ebp - 0x20], esi
cmovae ecx, edi
test eax, eax
cmovs ecx, ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ebx
jmp 0x41ba41
add ebx, 8
mov ebx, dword [ebx]
cmp byte [ebx + 0xd], 0
je 0x41b9d8
mov edx, dword [ebp - 0x10]
xor eax, eax
mov ecx, dword [ebp - 0x24]
cmp byte [edx + 0xd], al
cmove ecx, edx
mov esi, dword [ecx]
cmp byte [esi + 0xd], al
jne 0x41bab6
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
sub eax, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
sub ecx, eax
cmp edi, ecx
cmovb ecx, edi
setb bl
push ecx
push eax
push dword [ebp - 0x1c]
call fcn.004a79dd
add esp, 0xc
test eax, eax
mov edx, dword [ebp - 0x10]
sete cl
sets al
and cl, bl
or cl, al
mov eax, ecx
xor al, 1
test cl, cl
movzx eax, al
cmovne edx, esi
mov esi, dword [esi + eax*8]
xor eax, eax
cmp byte [esi + 0xd], al
je 0x41ba6e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
mov dword [eax + 4], edx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x41c788
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x4f002c]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edi, [ebp - 0x218]
mov ebx, 0xfffffff4
xor eax, ebp
mov dword [ebp - 0x10], eax
mov word [edi], 0
mov eax, dword [ebx + 0x4cd574]
mov word [ebp - 0x218], 0
push 0x104
push edi
push eax
call esi
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x41c7e8
push dword [ebp + 8]
push eax
push edi
call fcn.0041c727
add esp, 0xc
test al, al
jne 0x41c7f1
add ebx, 4
jne 0x41c7b4
xor ebx, ebx
jmp 0x41c7f3
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x41f6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [0x4f002c]
mov esi, ecx
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x4c], 0
je 0x41f70f
cmp dword [esi + 0x38], 0
je 0x41f73a
cmp byte [esi + 0x3d], 0
je 0x41f73a
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0xc]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x41f73c
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x34]
lea edx, [esi + 0x40]
mov edi, dword [ecx]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
push edx
call dword [edi + 0x20]
test eax, eax
je 0x41f713
cmp eax, 1
je 0x41f717
cmp eax, 3
je 0x41f73a
jmp 0x41f73c
xor edi, edi
jmp 0x41f74e
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x30]
sub edi, eax
je 0x41f734
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.004b7bb5
add esp, 0x10
cmp edi, eax
jne 0x41f73c
cmp byte [esi + 0x3d], 0
jne 0x41f73c
mov ebx, esi
push dword [esi + 0x4c]
call fcn.004b6f93
add esp, 4
xor edi, edi
test eax, eax
cmove edi, ebx
lea eax, [esi + 4]
mov byte [esi + 0x48], 0
mov byte [esi + 0x3d], 0
mov dword [esi + 0xc], eax
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x18]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [esi + 0x2c], eax
lea eax, [esi + 0x28]
mov dword [esi + 0x30], eax
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x28], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x4c], 0
mov eax, dword [0x4f2ebc]
mov ecx, dword [0x4f2ec0]
mov dword [esi + 0x44], ecx
mov dword [esi + 0x40], eax
mov dword [esi + 0x38], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, edi
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x420850
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x4f002c]
mov edi, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
call fcn.0041f330
test edi, edi
js 0x4208b8
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.0041d430
call fcn.00435b70
test al, al
je 0x42089f
mov eax, edi
lea ecx, [ebp - 0x24]
sar eax, 0x1f
push eax
push edi
push esi
push str.File::ReadAtCurrentPos
call fcn.00435bf0
lea eax, [ebp - 0x28]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4208bf
mov ebx, dword [ebp - 0x28]
jmp 0x4208cf
mov ebx, 0xffffffff
jmp 0x4208d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ebx, ebx
cmp eax, 0x26
setne bl
neg ebx
lea ecx, [ebp - 0x24]
call fcn.00435bd0
lea ecx, [ebp - 0x1c]
call fcn.0041f3e0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x420900
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [0x4f002c]
mov edi, dword [ebp + 0xc]
mov esi, ecx
lea ecx, [ebp - 0x1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0
call fcn.0041f330
test edi, edi
js 0x420971
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x24]
call fcn.0041d430
call fcn.00435b70
test al, al
je 0x42094f
mov eax, edi
lea ecx, [ebp - 0x24]
sar eax, 0x1f
push eax
push edi
push esi
push str.File::WriteAtCurrentPos
call fcn.00435bf0
lea eax, [ebp - 0x28]
push 0
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
lea ecx, [ebp - 0x24]
sbb esi, esi
or esi, dword [ebp - 0x28]
call fcn.00435bd0
jmp 0x420976
mov esi, 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.0041f3e0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048bd44
mov eax, esi
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x421ff0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x38
mov eax, dword [0x4f002c]
xorpd xmm0, xmm0
xor eax, ebp
mov dword [esp + 0x30], eax
movsd xmm1, qword [0x4f2ee0]
ucomisd xmm1, xmm0
jne 0x422174
jp 0x422174
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call edi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x4f2ef0]
mov ecx, dword [0x4f2d24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x422199
mov eax, dword [0x4f2f00]
mov ecx, dword [0x4f2d24]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4221d3
rdtsc
lea esi, [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 8], eax
mov dword [esp + 4], edx
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub edi, dword [0x4f2ef8]
movsd xmm2, qword [0x4d0798]
sbb ebx, dword [0x4f2efc]
movd xmm1, edi
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movd xmm0, ebx
punpckldq xmm1, xmm0
punpckldq xmm1, xmmword [0x4d0770]
subpd xmm1, xmmword [0x4d0780]
movapd xmm0, xmm1
unpckhpd xmm0, xmm1
addpd xmm0, xmm1
xorpd xmm1, xmm1
divsd xmm0, qword [esp + 0x20]
ucomisd xmm2, xmm0
ja 0x422174
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
sub eax, dword [0x4f2ee8]
sbb ecx, dword [0x4f2eec]
movd xmm2, eax
movd xmm1, ecx
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x4d0770]
subpd xmm2, xmmword [0x4d0780]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addpd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x4f2ee0], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x30]
xor ecx, ebp
call fcn.0048bd44
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4f2ef0
call fcn.0048bd87
add esp, 4
mov eax, dword [0x4f2ef0]
cmp eax, 0xffffffff
jne 0x422062
rdtsc
mov dword [0x4f2eec], edx
mov dword [0x4f2ee8], eax
push 0x4f2ef0
call fcn.0048bdd9
add esp, 4
jmp 0x422062
push 0x4f2f00
call fcn.0048bd87
add esp, 4
mov eax, dword [0x4f2f00]
cmp eax, 0xffffffff
jne 0x422083
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
movsd xmm0, qword [esp + 0x28]
movsd qword [0x4f2ef8], xmm0
push 0x4f2f00
call fcn.0048bdd9
add esp, 4
jmp 0x422083