joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430a80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c4a48
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x4f4970]
xor eax, esp
mov dword [esp + 0x68], eax
push ebp
push esi
mov eax, dword [0x4f4970]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
mov eax, dword [esp + 0xa0]
mov ebp, dword [esp + 0x9c]
lea ecx, [edi + 0x6c]
mov dword [esp + 0xc], eax
call fcn.00404400
lea ecx, [esp + 0x10]
lea esi, [edi + 8]
push ecx
mov ecx, esi
call fcn.00430b90
mov ecx, dword [esp + 0x8c]
mov dl, byte [esp + 0x88]
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [edi + 0xc], ecx
push ebx
lea ecx, [edi + 0x14]
mov byte [esi], dl
mov byte [edi + 0x10], al
mov byte [edi + 0x11], al
mov byte [edi + 0x12], al
mov byte [edi + 0x13], al
call fcn.00402c60
mov cl, byte [esp + 0x98]
mov dl, byte [esp + 0x90]
mov al, byte [esp + 0x94]
mov byte [edi + 0x32], cl
push ebp
lea ecx, [edi + 0x34]
mov byte [edi + 0x30], dl
mov byte [edi + 0x31], al
call fcn.00402c60
mov edx, dword [esp + 0xc]
push edx
lea ecx, [edi + 0x50]
call fcn.00402c60
lea eax, [esp + 0x10]
mov ecx, edi
call fcn.004311b0
test al, al
je 0x430b53
push edi
call fcn.00431200
lea ecx, [esp + 0x58]
call fcn.00402c40
lea ecx, [esp + 0x3c]
call fcn.00402c40
lea ecx, [esp + 0x1c]
call fcn.00402c40
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0046da8a
add esp, 0x78
ret 0x1c
Function at 0x43eec0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x4c1388
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4f4970]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 0x14], ebx
mov dword [esp + 0x14], ebx
mov dword [esi + 0x30], ecx
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x28]
mov dword [esi], 0x4dd93c
mov dword [esi + 0x18], eax
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], edx
mov dword [esi + 0x28], ebx
cmp eax, 3
jne 0x43ef69
push 0x4da4f8
call fcn.00401120
add esp, 4
push eax
mov eax, dword [edi + 0x14]
push 0x4da4f8
push eax
push ebx
mov ecx, edi
call fcn.00403380
test eax, eax
jne 0x43ef40
mov dword [esi + 0x2c], ebx
jmp 0x43ef69
push 0x4da470
call fcn.00401120
mov ecx, dword [edi + 0x14]
add esp, 4
push eax
push 0x4da470
push ecx
push ebx
mov ecx, edi
call fcn.00403380
neg eax
sbb eax, eax
neg eax
inc eax
mov dword [esi + 0x2c], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 0x10

Function at 0x440530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c2298
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4f4970]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
push esi
mov eax, dword [0x4f4970]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x40]
mov esi, ecx
mov dword [esp + 0xc], 0
call fcn.0040a850
test eax, eax
je 0x4405ec
mov ecx, edi
call fcn.0040a850
test eax, eax
je 0x4405ec
push esi
lea ecx, [esp + 0x14]
call fcn.00402c00
push 0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x40], 0
call fcn.0040a610
mov esi, eax
cmp esi, 0xffffffff
je 0x4405d5
push ebx
mov ecx, edi
call fcn.0040a850
push eax
push esi
lea ecx, [esp + 0x1c]
call fcn.0040a560
mov ecx, ebx
call fcn.0040a850
add eax, esi
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.0040a610
mov esi, eax
cmp esi, 0xffffffff
jne 0x4405a7
lea eax, [esp + 0x10]
push eax
mov ecx, ebp
call fcn.00402c00
lea ecx, [esp + 0x10]
call fcn.00402c40
jmp 0x4405f4
push esi
mov ecx, ebp
call fcn.00402c00
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0046da8a
add esp, 0x30
ret
Function at 0x440e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4c1d38
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x4f4970]
xor eax, esp
mov dword [esp + 0x1c], eax
push edi
mov eax, dword [0x4f4970]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea ecx, [esp + 8]
call fcn.00402b90
xor edi, edi
mov ecx, esi
mov dword [esp + 0x30], edi
call fcn.0040a850
push eax
lea ecx, [esp + 0xc]
call fcn.00402e50
mov ecx, esi
call fcn.0040a850
test eax, eax
je 0x440ef8
mov edi, edi
push edi
mov ecx, esi
call fcn.00402e00
movsx eax, byte [eax]
add eax, 0xffffffde
cmp eax, 0x1c
ja case.0x440e7a.35
movzx eax, byte [eax + 0x440f44]
jmp dword [eax*4 + 0x440f2c]
push str.amp_
lea ecx, [esp + 0xc]
call fcn.004030d0
jmp 0x440ee8
push str.quot_
lea ecx, [esp + 0xc]
call fcn.004030d0
jmp 0x440ee8
push str.apos_
lea ecx, [esp + 0xc]
call fcn.004030d0
jmp 0x440ee8
push str.lt_
lea ecx, [esp + 0xc]
call fcn.004030d0
jmp 0x440ee8
push str.gt_
lea ecx, [esp + 0xc]
call fcn.004030d0
jmp 0x440ee8
push edi
mov ecx, esi
call fcn.00402e00
movzx ecx, byte [eax]
push ecx
push 1
lea ecx, [esp + 0x10]
call fcn.00403100
mov ecx, esi
inc edi
call fcn.0040a850
cmp edi, eax
jne 0x440e60
lea edx, [esp + 8]
push edx
mov ecx, esi
call fcn.00419140
lea ecx, [esp + 8]
call fcn.00402c40
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0046da8a
add esp, 0x2c
ret

Function at 0x440f70
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x38
push ebx
push esi
mov esi, dword [0x4c8178]
push edi
lea eax, [esp + 0x10]
push eax
push 0
push 0x28
mov dword [esp + 0x1c], 0
call esi
mov edi, dword [0x4c8038]
push eax
call edi
mov ebx, dword [0x4c827c]
test eax, eax
jne 0x440fd2
call ebx
cmp eax, 0x3f0
jne 0x440fc9
push 2
call dword [0x4c803c]
test eax, eax
je 0x440fc9
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x28
call esi
push eax
call edi
test eax, eax
jne 0x440fd2
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x38
ret
lea edx, [esp + 0x18]
push edx
push str.SeDebugPrivilege
push 0
mov dword [esp + 0x20], 0x10
call dword [0x4c8004]
test eax, eax
je 0x440fc9
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov esi, dword [0x4c8020]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x38], eax
lea eax, [esp + 0x24]
push eax
push 0x10
mov dword [esp + 0x44], ecx
lea ecx, [esp + 0x3c]
push ecx
push 0
mov edi, 1
push edx
mov dword [esp + 0x48], edi
mov dword [esp + 0x54], 0
call esi
call ebx
test eax, eax
jne 0x440fc9
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
or dword [esp + 0x2c], 2
push 0
push 0
push edx
mov dword [esp + 0x30], eax
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x38], edi
call esi
call ebx
neg eax
pop edi
sbb eax, eax
pop esi
inc eax
pop ebx
add esp, 0x38
ret
Function at 0x44b330
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c4650
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4f4970]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
lea esi, [esp + 0x24]
call fcn.0044c490
mov edi, dword [esp + 0x64]
mov dword [esp + 0x58], 0
call fcn.0044c550
lea ecx, [esp + 0x14]
call fcn.00409dd0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 1
call fcn.00409f30
mov eax, dword [esp + 0x30]
test eax, eax
jl 0x44b499
mov ebp, dword [0x4c8394]
mov ebx, dword [0x4c845c]
mov edi, dword [0x4c8418]
jmp 0x44b3b0
cmp eax, 0x64
jge 0x44b499
mov ecx, dword [esp + 0x60]
cmp byte [ecx + 0x30], 0
je 0x44b477
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x44b426
push eax
call dword [0x4c83cc]
test eax, eax
je 0x44b426
mov edx, dword [esp + 0x2c]
push 2
push 0xff
push 0
push edx
call ebp
mov eax, dword [esp + 0x2c]
push 0xffffffffffffffec
push eax
call ebx
mov ecx, dword [esp + 0x2c]
push 0
mov esi, eax
push ecx
and esi, 0xffffff7f
call edi
mov edx, dword [esp + 0x2c]
push esi
push 0xffffffffffffffec
push edx
call dword [0x4c8458]
mov eax, dword [esp + 0x2c]
push 5
push eax
call edi
mov ecx, dword [esp + 0x2c]
push ecx
call dword [0x4c84e8]
mov eax, dword [esp + 0x38]
mov dword [esp + 0x4c], 1
test eax, eax
je 0x44b469
push 0x7d0
push eax
call dword [0x4c8288]
cmp eax, 0x102
jne 0x44b456
mov edx, dword [esp + 0x38]
push 0
push edx
call dword [0x4c81a8]
mov eax, dword [esp + 0x38]
push eax
call dword [0x4c8280]
mov dword [esp + 0x38], 0
mov ecx, dword [esp + 0x60]
cmp byte [ecx + 0x30], 0
jne 0x44b510
push 0x64
call dword [0x4c8250]
lea edx, [esp + 0x34]
push edx
lea ecx, [esp + 0x18]
call fcn.00409f30
mov eax, dword [esp + 0x30]
test eax, eax
jge 0x44b3b0
mov eax, dword [esp + 0x38]
test eax, eax
je 0x44b4bd
push 0xffffffffffffffff
push eax
call dword [0x4c8288]
mov edx, dword [esp + 0x38]
push edx
call dword [0x4c8280]
mov dword [esp + 0x38], 0
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x18]
call fcn.00409f30
xor ecx, ecx
cmp dword [esp + 0x30], 0x64
sete cl
mov esi, ecx
lea ecx, [esp + 0x14]
call fcn.00409f10
mov eax, dword [esp + 0x38]
test eax, eax
je 0x44b4ef
push eax
call dword [0x4c8280]
lea ecx, [esp + 0x34]
call fcn.00409f10
mov eax, esi
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret 8
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x64], str.user_cancel
call fcn.0046d347
push 0x4e9138
lea ecx, [esp + 0x1c]
push ecx
call fcn.0046d658
int3
Function at 0x44c160
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4c5b00
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push ebp
push esi
mov eax, dword [0x4f4970]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
xor ebx, ebx
push ebx
lea ecx, [esp + 0x34]
call fcn.004b2880
mov dword [esp + 0x48], ebx
mov dword [esp + 0x18], 0x4de838
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x50]
push eax
push ecx
lea ecx, [esp + 0x38]
mov byte [esp + 0x50], 1
call fcn.004b27d0
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x34]
call fcn.004b2710
push ebx
push ebx
lea ecx, [esp + 0x38]
call fcn.004b27a0
cmp dword [esp + 0x1c], ebx
jne 0x44c213
mov ebp, dword [0x4c8250]
lea esi, [edi + 0x24]
push 0x64
call ebp
mov eax, dword [esp + 0x20]
cmp eax, 0x64
jge 0x44c265
cmp eax, ebx
jg 0x44c1f9
xor eax, eax
push ebx
push ebx
push ebx
push eax
push 2
push 2
mov ecx, esi
call fcn.004b2750
cmp byte [edi + 0x30], bl
jne 0x44c26c
cmp dword [esp + 0x1c], ebx
je 0x44c1e6
lea ecx, [esp + 0x30]
call fcn.004b2840
cmp dword [esp + 0x1c], 1
je 0x44c291
mov edx, dword [esp + 0x54]
push edx
call dword [0x4c837c]
test eax, eax
je 0x44c291
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
call fcn.004bcfd0
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xffffffff
call fcn.004b2800
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
mov eax, 0x64
jmp 0x44c1f9
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
mov dword [esp + 0x18], str.user_cancel
call fcn.0046d347
push 0x4e9138
lea ecx, [esp + 0x28]
push ecx
call fcn.0046d658
lea ecx, [esp + 0x18]
mov byte [esp + 0x48], bl
call fcn.004bcfd0
lea ecx, [esp + 0x30]
mov dword [esp + 0x48], 0xffffffff
call fcn.004b2800
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret
Function at 0x4b2f40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov dword [eax], 0x4d9b50
push 0x40
push 0
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
call fcn.0046dea0
add esp, 0xc
mov edx, dword [ebp - 4]
mov dword [edx + 0x48], 0
mov eax, dword [ebp - 4]
mov dword [eax + 0x44], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x4c], 0x67452301
mov edx, dword [ebp - 4]
mov dword [edx + 0x50], 0xefcdab89
mov eax, dword [ebp - 4]
mov dword [eax + 0x54], 0x98badcfe
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x58], 0x10325476
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x4b3e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0c83
mov eax, dword fs:[0]
push eax
sub esp, 0x47c
mov eax, dword [0x4f4970]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x488], 0
mov ecx, dword [ebp + 0xc]
call fcn.0040e660
push eax
call dword [0x4c837c]
test eax, eax
jne 0x4b3e9c
push 0x4d8764
mov ecx, dword [ebp + 8]
call fcn.00409e10
mov eax, dword [ebp - 0x488]
or eax, 1
mov dword [ebp - 0x488], eax
mov eax, dword [ebp + 8]
jmp 0x4b3f76
lea ecx, [ebp - 0x47c]
call fcn.004b2f40
mov dword [ebp - 4], 0
mov dword [ebp - 0x480], 0
mov dword [ebp - 0x10], 0x400
push 0x4d8788
mov ecx, dword [ebp + 0xc]
call fcn.0040e660
push eax
call fcn.00487108
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4b3f43
mov ecx, 1
test ecx, ecx
je 0x4b3f37
mov dword [ebp - 0x484], 0
mov edx, dword [ebp - 0x14]
push edx
push 0x400
push 1
lea eax, [ebp - 0x41c]
push eax
call fcn.00486bbb
add esp, 0x10
mov dword [ebp - 0x484], eax
cmp dword [ebp - 0x484], 0
ja 0x4b3f1c
jmp 0x4b3f37
mov ecx, dword [ebp - 0x484]
push ecx
lea edx, [ebp - 0x41c]
push edx
lea ecx, [ebp - 0x47c]
call fcn.004b3980
jmp 0x4b3ede
mov eax, dword [ebp - 0x14]
push eax
call fcn.004843f2
add esp, 4
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x47c]
call fcn.004b3a90
mov edx, dword [ebp - 0x488]
or edx, 1
mov dword [ebp - 0x488], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x47c]
call fcn.00421a60
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0046da8a
mov esp, ebp
pop ebp
ret
Function at 0x4b7f80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0046f7e0
mov eax, dword [0x4f4970]
xor eax, ebp
mov dword [ebp - 8], eax
push 0x4d9068
mov ecx, dword [ebp + 8]
call fcn.0040e660
push eax
call fcn.00487108
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4b801c
mov eax, 1
test eax, eax
je 0x4b800c
mov dword [ebp - 0x100c], 0
mov ecx, dword [ebp - 4]
push ecx
push 0x1000
push 1
lea edx, [ebp - 0x1008]
push edx
call fcn.00486bbb
add esp, 0x10
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
ja 0x4b7ff4
jmp 0x4b800c
mov eax, dword [ebp - 0x100c]
push eax
lea ecx, [ebp - 0x1008]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00402d30
jmp 0x4b7fb6
mov edx, dword [ebp - 4]
push edx
call fcn.004843f2
add esp, 4
mov al, 1
jmp 0x4b801e
xor al, al
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0046da8a
mov esp, ebp
pop ebp
ret
Function at 0x4059cd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
xor ebx, ebx
push esi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
xor eax, eax
cmp dword [ecx + 0x14], ebx
mov dword [ebp - 0xc], esi
sete al
xor ecx, ecx
cmp dword [ebp + 0x14], ebx
mov byte [ebp - 1], bl
sete cl
cmp eax, ecx
jne 0x405a88
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0x10]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x405a87
cmp dword [esi + 0x78], ebx
jne 0x405a22
mov byte [ebp - 1], 1
jmp 0x405a87
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jbe 0x405a87
add eax, 2
push eax
call fcn.004287c0
mov esi, eax
pop ecx
cmp esi, ebx
je 0x405a87
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x405a80
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + eax], bl
mov eax, dword [ebp + 0x10]
mov byte [esi + eax + 1], bl
cmp dword [ecx + 0x7c], 8
jb 0x405a6a
mov eax, dword [ecx + 0x68]
jmp 0x405a6d
lea eax, [ecx + 0x68]
push eax
push dword [ebp + 0x14]
push dword [ebp - 8]
push dword [ebp + 0x10]
push esi
call fcn.00405923
mov byte [ebp - 1], al
push esi
call fcn.004286a0
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 0x10

Function at 0x405a91
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push 0x110
lea eax, [ebp - 0x110]
push 0
push eax
mov esi, ecx
call fcn.0042878d
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
mov dword [ebp - 0x114], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x405b25
cmp dword [esi + 0x28], 8
jb 0x405ada
mov eax, dword [esi + 0x14]
jmp 0x405add
lea eax, [esi + 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x42995c
push eax
call edi
test eax, eax
jne 0x405afb
cmp dword [ebp - 0x110], 5
sete al
jmp 0x405b27
cmp dword [esi + 0x28], 8
jb 0x405b06
mov esi, dword [esi + 0x14]
jmp 0x405b09
add esi, 0x14
push 0x429954
push esi
call edi
test eax, eax
jne 0x405b21
cmp dword [ebp - 0x110], 5
setne al
jmp 0x405b27
mov al, 1
jmp 0x405b27
xor al, al
pop edi
pop esi
leave
ret
Function at 0x405b2b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor ebx, ebx
mov edi, ecx
mov byte [ebp - 1], bl
cmp dword [edi + 0x78], ebx
je 0x405c1b
cmp dword [edi + 0x60], 8
jb 0x405b4e
mov eax, dword [edi + 0x4c]
jmp 0x405b51
lea eax, [edi + 0x4c]
push ebx
push 0x80
push 3
push ebx
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x405c1b
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x14], eax
call fcn.004287c0
pop ecx
mov dword [ebp - 8], eax
cmp eax, ebx
je 0x405c11
push ebx
lea ecx, [ebp - 0x10]
push ecx
push esi
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405c11
cmp dword [ebp - 0x10], esi
jne 0x405c11
mov eax, dword [ebp - 8]
mov byte [eax + esi], bl
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004287c0
mov esi, eax
pop ecx
cmp esi, ebx
je 0x405c08
push dword [ebp - 0x14]
push esi
push 0xffffffffffffffff
push dword [ebp - 8]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jle 0x405c01
cmp dword [edi + 0x7c], 8
jb 0x405bf2
mov edi, dword [edi + 0x68]
jmp 0x405bf5
add edi, 0x68
push edi
push esi
call fcn.00408c3b
pop ecx
pop ecx
mov byte [ebp - 1], al
push esi
call fcn.004286a0
pop ecx
push dword [ebp - 8]
call fcn.004286a0
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop edi
pop ebx
leave
ret 4
Function at 0x405cf0
Capabilities:
Check if file exists

Disassembly:
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x5c], 0
push edi
je 0x405e39
push 8
pop ebx
cmp dword [esi + 0x44], ebx
jb 0x405d0c
mov eax, dword [esi + 0x30]
jmp 0x405d0f
lea eax, [esi + 0x30]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x4299ec
push eax
call edi
test eax, eax
jne 0x405d5e
cmp dword [esi + 0x60], ebx
jb 0x405d2b
mov eax, dword [esi + 0x4c]
jmp 0x405d2e
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405d57
cmp dword [esi + 0x60], ebx
jb 0x405d43
mov esi, dword [esi + 0x4c]
jmp 0x405d46
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405d57
inc eax
jmp 0x405e3b
xor eax, eax
jmp 0x405e3b
cmp dword [esi + 0x44], ebx
jb 0x405d68
mov eax, dword [esi + 0x30]
jmp 0x405d6b
lea eax, [esi + 0x30]
push str.folder
push eax
call edi
test eax, eax
jne 0x405d96
cmp dword [esi + 0x60], ebx
jb 0x405d81
mov esi, dword [esi + 0x4c]
jmp 0x405d84
add esi, 0x4c
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
neg eax
sbb eax, eax
neg eax
jmp 0x405e3b
cmp dword [esi + 0x44], ebx
jb 0x405da0
mov eax, dword [esi + 0x30]
jmp 0x405da3
lea eax, [esi + 0x30]
push str.contentasutf
push eax
call edi
test eax, eax
jne 0x405ded
cmp dword [esi + 0x60], ebx
jb 0x405db9
mov eax, dword [esi + 0x4c]
jmp 0x405dbc
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405e39
cmp dword [esi + 0x60], ebx
jb 0x405dd1
mov eax, dword [esi + 0x4c]
jmp 0x405dd4
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405e39
push 0xfde9
mov ecx, esi
call fcn.00405b2b
jmp 0x405e3b
cmp dword [esi + 0x44], ebx
jb 0x405df7
mov eax, dword [esi + 0x30]
jmp 0x405dfa
lea eax, [esi + 0x30]
push str.contentasansi
push eax
call edi
test eax, eax
jne 0x405e39
cmp dword [esi + 0x60], ebx
jb 0x405e10
mov eax, dword [esi + 0x4c]
jmp 0x405e13
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x405e39
cmp dword [esi + 0x60], ebx
jb 0x405e28
mov eax, dword [esi + 0x4c]
jmp 0x405e2b
lea eax, [esi + 0x4c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x405e39
push eax
jmp 0x405de4
xor al, al
pop edi
pop esi
pop ebx
ret
Function at 0x406552
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x14c8
call fcn.00428904
push ebx
push esi
push edi
mov edi, ecx
call fcn.00406215
push eax
lea ecx, [ebp - 0x24]
call fcn.00404cca
push 0x429a6c
lea ecx, [ebp - 0x40]
call fcn.00404cca
push 0x429a68
lea ecx, [ebp - 0x78]
call fcn.00404cca
xor ebx, ebx
push ebx
lea eax, [ebp - 0x40]
lea ecx, [edi + 0x18]
push eax
mov dword [ebp - 4], ecx
call fcn.004063ce
mov esi, eax
cmp esi, 0xffffffff
je 0x406613
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x24]
add edi, 0x4c
push eax
mov ecx, edi
call fcn.00404b9f
mov ecx, dword [ebp - 4]
push esi
lea eax, [ebp - 0x78]
push eax
call fcn.004063ce
cmp eax, 0xffffffff
je 0x4065e1
mov ecx, dword [ebp - 0x2c]
sub eax, ecx
sub eax, esi
push eax
add ecx, esi
push ecx
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x5c]
push eax
call fcn.00406535
jmp 0x4065fb
lea eax, [ebp - 5]
push eax
mov eax, dword [ebp - 0x2c]
push 0xffffffffffffffff
add eax, esi
push eax
push dword [ebp - 4]
lea ecx, [ebp - 0x5c]
call fcn.004064b4
lea eax, [ebp - 0x5c]
push 0xffffffffffffffff
push ebx
push eax
mov ecx, edi
call fcn.0040506f
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.004049d8
jmp 0x406661
cmp dword [ebp - 0xc], 8
mov eax, dword [ebp - 0x20]
jae 0x40661f
lea eax, [ebp - 0x20]
lea ecx, [ebp - 0x14c8]
push ecx
push ebx
push 0x429a60
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x406661
lea eax, [ebp - 0x14c8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x14c8]
add edi, 0x4c
push eax
mov ecx, edi
call fcn.00404ca6
push 0x429a54
mov ecx, edi
call fcn.0040567c
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.004049d8
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004049d8
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.004049d8
pop edi
pop esi
pop ebx
leave
ret