joyce8/EMBER2024-capa huggingface dataset:
Function at 0x568cd0
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ae032
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
push ebx
push esi
push edi
mov eax, dword [0x63ad78]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00574130
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0052bb50
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x30
call fcn.0056b870
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0x50
call fcn.00568f00
push 0x10
call fcn.0044d121
add esp, 4
mov dword [ebp - 0x70], eax
mov byte [ebp - 4], 2
cmp dword [ebp - 0x70], 0
je 0x568d56
mov ecx, dword [ebp - 0x70]
call fcn.00508310
mov dword [ebp - 0x78], eax
jmp 0x568d5d
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x74]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.00574340
push 0xac
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0056b530
push 0x48
call fcn.0044d121
add esp, 4
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 3
cmp dword [ebp - 0x64], 0
je 0x568dae
mov ecx, dword [ebp - 0x64]
call fcn.00568e80
mov dword [ebp - 0x78], eax
jmp 0x568db5
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x68], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], ecx
lea edx, [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x18
call fcn.0056b710
push 0x68
call fcn.0044d121
add esp, 4
mov dword [ebp - 0x5c], eax
mov byte [ebp - 4], 4
cmp dword [ebp - 0x5c], 0
je 0x568df8
mov ecx, dword [ebp - 0x5c]
call fcn.00568f30
mov dword [ebp - 0x78], eax
jmp 0x568dff
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x60], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x60]
mov dword [ecx + 0x68], edx
push 0x68
call fcn.0044d121
add esp, 4
mov dword [ebp - 0x54], eax
mov byte [ebp - 4], 5
cmp dword [ebp - 0x54], 0
je 0x568e36
mov ecx, dword [ebp - 0x54]
call fcn.00568f30
mov dword [ebp - 0x78], eax
jmp 0x568e3d
mov dword [ebp - 0x78], 0
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x58]
mov dword [ecx + 0x6c], edx
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x70], 0
push 1
mov ecx, dword [ebp - 0x10]
call fcn.0056ae80
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x57cf70
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57e190
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
push ebx
push esi
push edi
cmp dword [ebp + 8], 0
jne 0x57e1a6
mov eax, 1
jmp 0x57e20a
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x18], 0
xor eax, eax
mov ecx, dword [ebp + 8]
mov word [ecx + 0x1c], ax
mov eax, dword [ebp + 8]
mov dword [eax], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov eax, dword [ebp + 8]
mov dword [eax + 8], 0x98badcfe
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0x10325476
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], 0xc3d2e1f0
mov eax, dword [ebp + 8]
mov dword [eax + 0x60], 0
mov eax, dword [ebp + 8]
mov dword [eax + 0x64], 0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5824ce
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x63ad78]
jne 0x5824d8
repz ret
jmp fcn.0058ef4c

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x584728
call fcn.00587a10
mov dword [eax], esi
call fcn.005879fd
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00584aac
add esp, 0x14
push 0x16
pop eax
jmp 0x58477d
test dword [ebp + 0xc], 0xfffffff9
jne 0x584704
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x584755
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00587a23
pop ecx
call fcn.005879fd
mov eax, dword [eax]
jmp 0x58477d
test al, 0x10
jne 0x58477b
test al, 1
je 0x58477b
test byte [ebp + 0xc], 2
je 0x58477b
call fcn.00587a10
mov dword [eax], 5
call fcn.005879fd
mov dword [eax], 0xd
jmp 0x58474c
xor eax, eax
pop esi
pop ebp
ret

Function at 0x59f05a
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.0058e893
and dword [ebp - 4], 0
cmp dword [0x643fc8], 0
mov ebx, eax
jne 0x59f10b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x59f1bc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x60daf0
push edi
call esi
test eax, eax
je 0x59f1bc
push eax
call fcn.0058e821
mov dword [esp], 0x60dae0
push edi
mov dword [0x643fc8], eax
call esi
push eax
call fcn.0058e821
mov dword [esp], 0x60dacc
push edi
mov dword [0x643fcc], eax
call esi
push eax
call fcn.0058e821
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x643fd0], eax
call esi
push eax
call fcn.0058e821
pop ecx
mov dword [0x643fd8], eax
test eax, eax
je 0x59f10b
push 0x60da98
push edi
call esi
push eax
call fcn.0058e821
pop ecx
mov dword [0x643fd4], eax
mov eax, dword [0x643fd4]
cmp eax, ebx
je 0x59f163
cmp dword [0x643fd8], ebx
je 0x59f163
push eax
call fcn.0058e89c
push dword [0x643fd8]
mov esi, eax
call fcn.0058e89c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x59f163
test edi, edi
je 0x59f163
call esi
test eax, eax
je 0x59f15a
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x59f15a
test byte [ebp - 0xc], 1
jne 0x59f163
or dword [ebp + 0x10], 0x200000
jmp 0x59f19c
mov eax, dword [0x643fcc]
cmp eax, ebx
je 0x59f19c
push eax
call fcn.0058e89c
pop ecx
test eax, eax
je 0x59f19c
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x59f19c
mov eax, dword [0x643fd0]
cmp eax, ebx
je 0x59f19c
push eax
call fcn.0058e89c
pop ecx
test eax, eax
je 0x59f19c
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x643fc8]
call fcn.0058e89c
pop ecx
test eax, eax
je 0x59f1bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x59f1be
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x5a40e8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5a4119
call fcn.00587a10
mov dword [eax], esi
call fcn.005879fd
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.00584aac
add esp, 0x14
push 0x16
pop eax
jmp 0x5a416e
test dword [ebp + 0xc], 0xfffffff9
jne 0x5a40f5
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5a4146
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00587a23
pop ecx
call fcn.005879fd
mov eax, dword [eax]
jmp 0x5a416e
test al, 0x10
jne 0x5a416c
test al, 1
je 0x5a416c
test byte [ebp + 0xc], 2
je 0x5a416c
call fcn.00587a10
mov dword [eax], 5
call fcn.005879fd
mov dword [eax], 0xd
jmp 0x5a413d
xor eax, eax
pop esi
pop ebp
ret

Function at 0x5a5c20
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x5af15d
call fcn.005877df
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x3c], ebx
je 0x5a5d32
cmp byte [esi + 0x42], bl
je 0x5a5d32
mov eax, dword [esi]
mov edi, 0xffff
push edi
call dword [eax + 4]
movzx eax, ax
cmp di, ax
jne 0x5a5c5c
xor al, al
jmp 0x5a5d34
push ebx
push 8
lea ecx, [ebp - 0x2c]
call fcn.0042bff0
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cef0
mov ecx, eax
call fcn.00525880
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cef0
mov ecx, eax
call fcn.00525880
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x5a5ccc
dec eax
je 0x5a5cd0
dec eax
dec eax
je 0x5a5d2e
xor bl, bl
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00411690
mov al, bl
jmp 0x5a5d34
mov byte [esi + 0x42], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cef0
mov ecx, eax
call fcn.00525880
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x5a5d10
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040cef0
mov ecx, eax
call fcn.00525880
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.00589a50
add esp, 0x10
cmp edi, eax
jne 0x5a5cba
cmp byte [esi + 0x42], 0
je 0x5a5d2e
test edi, edi
jne 0x5a5c6a
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00423080
jmp 0x5a5c6a
mov bl, 1
jmp 0x5a5cbc
mov al, 1
call fcn.00587862
ret
Function at 0x403310
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4793c0
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x49d22c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edx, dword [esi + 0x30]
or eax, 0xffffffff
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x403350
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, esi
call fcn.004031e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4047a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479551
mov eax, dword fs:[0]
push eax
sub esp, 0x2d8
mov eax, dword [0x49d22c]
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
push 0x47fa30
push dword [ebx]
call fcn.00455106
add esp, 8
test eax, eax
je 0x404811
push str.LeyouGametray
push dword [ebx]
call fcn.00455106
add esp, 8
test eax, eax
je 0x404811
push dword [ebx + 0x14]
push 0xffffffffffffffff
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
neg eax
sbb eax, eax
inc eax
jmp 0x404980
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00451790
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [ebx + 0x14]
push 0x104
push eax
push str.true
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push str.false
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebp - 0x24c], ecx
test eax, eax
je 0x40497e
call fcn.0043b4c0
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x404978
push 0x3c
push str.e:lib_commoncommon_helper_autorunmanger_autorunmanager.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.00406620
push 3
push 0x47f9f4
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.00406620
mov byte [ebp - 4], 1
call fcn.0043b4c0
mov edi, eax
lea ecx, [ebp - 0x2e4]
push 0x33b
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.00402550
mov esi, eax
push str.IsDisable_
push esi
mov byte [ebp - 4], 2
call fcn.00403970
mov ecx, dword [ebx + 0x14]
mov edx, 0x47f96c
test ecx, ecx
cmovne edx, ecx
push edx
push esi
call fcn.004015f0
push 0x47fab4
push esi
call fcn.00403970
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.004015f0
mov edx, dword [edi]
add esp, 0x20
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x2e4]
call fcn.00403aa0
lea ecx, [ebp - 0x230]
call fcn.00402f40
lea ecx, [ebp - 0x248]
call fcn.00402f40
mov ecx, dword [ebp - 0x24c]
mov eax, ecx
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.0043c91d
mov esp, ebp
pop ebp
ret
Function at 0x405010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x405069
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x405069
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x40505a
cmp esi, edx
jae 0x405069
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x405048
cmp esi, edx
jae 0x405069
cmp word [esi], 0
je 0x405069
mov eax, esi
pop esi
pop ebp
ret
xor eax, eax
pop esi
pop ebp
ret

Function at 0x40a3b0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x49d22c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
push 0x30
push 0
push esi
call fcn.00451790
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.00451790
add esp, 0x18
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x40a413
cmp dword [ebp - 0x114], 6
mov eax, 0x30
jae 0x40a418
mov eax, 0x2c
mov ecx, dword [ebp + 0x10]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [esi + 4], eax
test ecx, ecx
jne 0x40a436
push edi
call dword [sym.imp.USER32.dll_GetParent]
or dword [esi + 4], 1
mov ecx, edi
jmp 0x40a438
mov eax, edi
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xc], ecx
test eax, eax
je 0x40a44c
movups xmm0, xmmword [eax]
movups xmmword [esi + 0x10], xmm0
mov ecx, dword [0x4c540c]
mov eax, esi
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp + 0x18]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [esi + 0x28], ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043c91d
mov esp, ebp
pop ebp
ret 0x18
Function at 0x40cf00
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479da6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x49d22c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40cfac
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40cfac
call fcn.0040b1f0
mov esi, eax
jmp 0x40d09c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40cfcf
call fcn.0040b1f0
jmp 0x40d08f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x40cfed
call fcn.0040b1f0
jmp 0x40d08f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x40d00e
mov esi, 0x8007000e
jmp 0x40d091
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.0040aff0
jmp 0x40d038
cmp dword [ebp - 0x418], 0
mov dword [ebp - 4], 1
jne 0x40d04f
mov esi, 0x8007000e
jmp 0x40d091
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40d06f
call fcn.0040b1f0
jmp 0x40d08f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.0040cd60
mov esi, eax
test edi, edi
je 0x40d09c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x40d0c0
lea ecx, [ebp - 0x418]
call fcn.0040b870
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0043c91d
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4114a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47a088
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x49d22c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [edi + 0xc], 0
je 0x4114ed
push 0xa
push str.drv_giveup
lea ecx, [edi + 0x10]
call fcn.00404dc0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 4]
sub eax, 0x10
push eax
call fcn.004041e0
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411525
push 9
lea ecx, [edi + 0x10]
push str.drv_other
call fcn.00404dc0
jmp 0x411545
push esi
call fcn.00432df0
add esp, 4
test eax, eax
je 0x411545
mov eax, dword [edi]
push 0
push 0
push esi
push 1
push eax
push eax
call fcn.004117f0
add esp, 0x18
or eax, 0xffffffff
add esi, 0xfffffff0
mov dword [ebp - 4], eax
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x411560
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411900
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edi
mov eax, dword [edi]
cmp eax, 0x270
jne 0x41195e
lea edx, [edi + 8]
mov esi, eax
nop dword [eax]
mov ecx, dword [edx - 4]
lea edx, [edx + 4]
xor ecx, dword [edx - 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x411920
mov eax, dword [edi]
jmp 0x411a49
cmp eax, 0x4e0
jb 0x411a49
mov eax, dword [edi + 0x9c4]
push ebx
lea ebx, [edi + 0x9c4]
mov edi, 0xe3
nop dword [eax + eax]
mov ecx, dword [ebx + 4]
lea edx, [ebx + 4]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx + 0x634]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x411980
mov ebx, dword [ebp - 4]
mov edi, 0x18c
add ebx, 0xd50
mov eax, dword [ebx]
nop dword [eax]
mov ecx, eax
lea edx, [ebx + 4]
xor ecx, dword [edx]
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [ebx - 0xd4c]
xor eax, ecx
mov dword [ebx - 0x9c0], eax
lea ebx, [edx]
mov eax, dword [edx]
sub edi, 1
jne 0x4119d0
mov edi, dword [ebp - 4]
pop ebx
mov ecx, dword [edi + 0x1380]
xor ecx, dword [edi + 4]
and ecx, 0x7fffffff
xor ecx, dword [edi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi + 0x9c0], eax
xor eax, eax
mov dword [edi], 0
mov edx, dword [edi + eax*4 + 4]
inc eax
mov dword [edi], eax
mov ecx, edx
mov eax, dword [edi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
pop edi
xor eax, edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x411d40
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], ecx
push esi
and eax, 0x8000000f
jns 0x411d5b
dec eax
or eax, 0xfffffff0
add eax, 1
jne 0x411eba
push 0
push 0x80
push 3
push 0
push 0
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x411eba
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x411eb3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x411eb3
cmp dword [ebp - 0x10], 0
jg 0x411eb3
jl 0x411dc4
cmp eax, 0x1000000
ja 0x411eb3
push edi
push 0x1000000
call fcn.0043cb8d
add esp, 4
mov dword [ebp + 0x14], 0
mov edi, eax
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 0x14]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411e97
cmp dword [ebp + 0x14], 0
je 0x411e97
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call ebx
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
mov dword [ebp + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
push eax
push edi
call fcn.00411ae0
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp + 0x10]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x411e69
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push dword [ebp + 8]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x411e7f
call ebx
push 1
push esi
call fcn.0043c675
add esp, 8
xor al, al
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
call ebx
push 1
push esi
call fcn.0043c675
add esp, 8
mov al, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push 1
push edi
call fcn.0043c675
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x411ff0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, ecx
push dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x412010
push 9
push str.svc_other
lea ecx, [esi + 0xc]
call fcn.00404dc0
pop esi
ret
push dword [esi]
call fcn.00432df0
add esp, 4
test eax, eax
je 0x412041
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
je 0x412041
push 0x4805ec
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412041
push 0x47e5ec
call eax
pop esi
ret