joyce8/EMBER2024-capa huggingface dataset:
Function at 0x419d9c
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ce40
push 0x42ce38
push str.FlsAlloc
push 0x1e
call fcn.00419c5d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419dd0
push dword [ebp + 8]
mov ecx, esi
call dword [0x4261f0]
call esi
jmp 0x419dd6
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x419e1a
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x42ce50
push 0x42ce48
push str.FlsGetValue
push 0x20
call fcn.00419c5d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x419e51
push dword [ebp + 8]
mov ecx, esi
call dword [0x4261f0]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41bb8c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0041b6b3

Function at 0x41c4fb
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x433004]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x41c546
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0041c69a
test al, al
jne 0x41c540
sub edx, 2
cmp edx, edi
jne 0x41c526
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41c568
lea eax, [edi + 2]
cmp edx, eax
je 0x41c568
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041c447
add esp, 0x10
jmp 0x41c662
push esi
lea ecx, [ebp - 0x255]
call fcn.0041c69a
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x41c5ab
push dword [ebp - 0x25c]
jmp 0x41c558
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x41c5e8
cmp word [ebp - 0x226], 0
je 0x41c609
cmp word [ebp - 0x226], ax
jne 0x41c5e8
cmp word [ebp - 0x224], 0
je 0x41c609
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041c447
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x41c655
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x41c5c2
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x41c63d
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x41c662
push 0x41c277
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00421810
add esp, 0x10
jmp 0x41c632
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040947a
leave
ret
Function at 0x41cf6d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x41d00a
push ebx
push esi
call fcn.0041cf36
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0041abe1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41cfb7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d009
push edi
push eax
call fcn.00418bc7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41cfd7
call fcn.004163e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41d008
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041abe1
add esp, 0x20
test eax, eax
jne 0x41cff6
push edi
call fcn.004163e6
jmp 0x41cffe
push ebx
call fcn.004163e6
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x41d00d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x41d01e
pop esi
ret
push ebx
push edi
push esi
call fcn.0041cf36
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00418bc7
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x41d046
push ebx
push esi
push edi
call fcn.0040a0f0
add esp, 0xc
push 0
call fcn.004163e6
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x422c25
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00422ba1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x422d9d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x422d9d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x422d4c
jg 0x422c7e
test eax, eax
je 0x422d42
push 1
push 0x1000
call fcn.00419acd
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x422ca4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x422d39
push 0x8000
push ebx
call fcn.00412890
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x422cd0
jg 0x422ccb
cmp ecx, 0x1000
jb 0x422cd0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0041864a
add esp, 0x10
cmp eax, 0xffffffff
je 0x422d15
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x422ccb
jl 0x422cfc
test ecx, ecx
jne 0x422cbd
push dword [ebp - 0xc]
push ebx
call fcn.00412890
push esi
call fcn.004163e6
add esp, 0xc
xor edi, edi
jmp 0x422dae
cmp byte [edi + 0x24], 0
je 0x422d2c
cmp dword [edi + 0x20], 5
jne 0x422d2c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x422d37
mov edi, dword [edi + 0x18]
jmp 0x422d39
xor edi, edi
push esi
call fcn.004163e6
pop ecx
jmp 0x422dae
test ecx, ecx
jg 0x422d0e
jl 0x422d4c
test eax, eax
jae 0x422d0e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00417b0d
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x422d6f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x422d0e
jmp 0x422da6
push ebx
call fcn.00413afb
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x422d0e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x422dae
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x422dab
mov edi, dword [edi + 0x18]
jmp 0x422dae
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00417b0d
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x2134058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x21341a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x213407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x213406a
add dl, dl
jne 0x2134089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x21340dc
xor eax, eax
add dl, dl
jne 0x2134096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x213417d
add dl, dl
jne 0x21340a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21340b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21340bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21340c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x21340d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x2134075
mov eax, 1
add dl, dl
jne 0x21340ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x21340f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x21340e1
sub eax, ebx
mov ebx, 1
jne 0x2134128
mov ecx, 1
add dl, dl
jne 0x213410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x2134119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2134105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2134075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x213413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x213414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x2134136
cmp eax, 0x7d00
jae 0x213416d
cmp eax, 0x500
jb 0x2134168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2134075
cmp eax, 0x7f
ja 0x2134170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2134075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x213419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x2134075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x403870
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push 0x113b
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x403897
xor eax, eax
jmp 0x4038a9
mov edx, dword [ebp - 4]
cmp edx, dword [ebp - 8]
jae 0x4038a6
mov eax, dword [ebp - 4]
jmp 0x4038a9
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret

Function at 0x403a30
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0x15db
push 0
call dword [sym.imp.USER32.dll_LoadIconA]
test eax, eax
je 0x403a49
xor eax, eax
jmp 0x403a78
push 0x4420ac
mov eax, dword [str.InterfacEb196b287_bab4_101a_b69c_00aa00341d07]
push eax
mov ecx, dword [0x43cc1c]
sub ecx, 2
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x403a78
mov edx, 1
test edx, edx
je 0x403a78
jmp 0x403a6d
mov esp, ebp
pop ebp
ret
Function at 0x364a60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x38b010]
push edi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
mov edi, dword [ebp + 0x10]
lea eax, [edi + 1]
push eax
push 0
call 0xc302d9
nop
push eax
call 0x7742e026
nop
mov ebx, eax
push 0x3949e8
mov dword [ebp - 4], ebx
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
mov byte [ebx + edi], 0
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
xor edi, edi
cmp dword [ebp + 0x10], edi
jbe 0x364b7a
mov eax, dword [ebp + 8]
sub eax, ebx
mov dword [ebp - 8], eax
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
mov ecx, dword [ebp + 0xc]
push ecx
add ebx, edi
nop
call 0x761443d3
mov ecx, eax
xor edx, edx
mov eax, edi
div ecx
mov eax, dword [ebp + 0xc]
add esp, 4
push 0x3949e8
mov cl, byte [edx + eax]
mov edx, dword [ebp - 8]
xor cl, byte [edx + ebx]
mov byte [ebx], cl
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
mov ebx, dword [ebp - 4]
inc edi
cmp edi, dword [ebp + 0x10]
jb 0x364b06
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
push 0x3949e8
call esi
lea eax, [ebp - 0xc]
push eax
push 0x100
push 4
push ebx
mov dword [ebp - 0xc], 0
call 0xc302de
nop
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x366ef0
Capabilities:
Parse pe header

Disassembly:
cmp dword [ebx + 4], 0x40
jb 0x366f91
mov eax, dword [ebx]
push 0x40
push eax
push esi
nop
call 0x76139910
mov ecx, 0x5a4d
add esp, 0xc
cmp word [esi], cx
jne 0x366fc0
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x366fc0
lea edx, [eax + 0xf8]
cmp edx, dword [ebx + 4]
ja 0x366f91
mov ecx, dword [ebx]
push edi
push pe_nt_image_headers32
add ecx, eax
push ecx
lea edi, [esi + 0x40]
push edi
call 0x76139910
nop
add esp, 0xc
cmp dword [edi], 0x4550
pop edi
jne 0x366fc0
mov edx, 0x10b
cmp word [esi + 0x58], dx
jne 0x366fc0
movzx eax, word [esi + 0x46]
test ax, ax
je 0x366fc0
lea eax, [eax + eax*4]
add eax, eax
add eax, eax
add eax, eax
push eax
push 8
mov dword [esi + 0x140], eax
call dword [fcn.005990f4]
push eax
call dword [fcn.00599088]
mov dword [esi + 0x138], eax
test eax, eax
jne 0x366f97
mov eax, 3
ret
mov eax, 1
ret
movzx ecx, word [esi + 0x54]
mov edx, dword [esi + 0x3c]
lea ecx, [ecx + edx + 0x18]
mov edx, dword [esi + 0x140]
push ebx
push edx
push ecx
push eax
mov dword [esi + 0x13c], ecx
call fcn.00367590
add esp, 0x10
neg eax
sbb eax, eax
inc eax
ret
mov eax, 2
ret
Function at 0x85baf0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [0x5990e0]
test esi, esi
jne 0x85bb08
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x85bb01
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi], 0x4550
jne 0x85bb01
mov eax, dword [eax + esi + 0x78]
mov ecx, dword [eax + esi + 0x1c]
add eax, esi
add ecx, esi
push ebx
mov ebx, dword [eax + 0x20]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + 0x24]
mov eax, dword [eax + 0x18]
push edi
add ecx, esi
add ebx, esi
xor edi, edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test eax, eax
je 0x85bb6a
jmp 0x85bb50
mov eax, dword [ebx + edi*4]
mov ecx, dword [0x598bf0]
add eax, esi
call fcn.00859610
test eax, eax
je 0x85bb73
inc edi
cmp edi, dword [ebp - 4]
jb 0x85bb50
pop edi
pop ebx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + edi*2]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + edx*4]
pop edi
pop ebx
add eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4010f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401109
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401144
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401140
lea ebx, [ebx]
cmp esi, eax
jae 0x401144
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401130
cmp esi, eax
jb 0x40114a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x401970
Capabilities:
Encode data using xor

Disassembly:
or eax, 0xffffffff
test ecx, ecx
je 0x40199f
push esi
push edi
lea esp, [esp]
movzx edi, byte [edx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
xor eax, dword [esi*4 + 0x4e8cc0]
dec ecx
inc edx
test ecx, ecx
jne 0x401980
pop edi
pop esi
not eax
ret
Function at 0x407ae0
Capabilities:
Delete file
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ba670
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x24]
call fcn.004019b0
mov dword [esp + 0x18], 0
mov ecx, dword [esp + 0x20]
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffc
push eax
lea edx, [esp + 0x10]
push edx
lea ecx, [esp + 0x28]
call fcn.00408430
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c], 1
call fcn.00408830
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407b66
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str..thm
lea esi, [esp + 0x24]
call fcn.00408160
mov ecx, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x407bdc
mov eax, dword [esp + 0x28]
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea edx, [esp + 0x2c]
push edx
push 8
push eax
push esi
call edi
mov edx, dword [esp + 0x24]
push 0
lea ecx, [esp + 0x2c]
push ecx
push 0x4700
push edx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x28], 0x4700
je 0x407bdc
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407c04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 0xc
Function at 0x407c20
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ba640
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e3f80]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
push edi
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], ebx
call fcn.004019b0
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x18]
mov eax, dword [eax - 0xc]
add eax, 0xfffffffc
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x20]
call fcn.00408430
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44], 1
call fcn.00408830
mov byte [esp + 0x40], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407ca9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str..thm
lea esi, [esp + 0x1c]
call fcn.00408160
mov ecx, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
push ebx
push ebx
push 3
push ebx
push ebx
push SHChangeNotifyRegister
push ecx
call ebp
push ebx
push ebx
push 3
push ebx
push ebx
push SHChangeNotifyRegister
push edi
mov esi, eax
call ebp
mov edi, eax
cmp esi, 0xffffffff
je 0x407d5b
cmp edi, 0xffffffff
je 0x407d5b
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
lea edx, [esp + 0x20]
push edx
push 8
lea eax, [esp + 0x34]
push eax
push esi
mov dword [esp + 0x30], ebx
call ebp
lea ecx, [esp + 0x30]
push ecx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp dword [esp + 0x1c], ebx
je 0x407d5b
mov eax, 8
xor ecx, ecx
mov edx, dword [esp + ecx + 0x28]
cmp edx, dword [esp + ecx + 0x30]
jne 0x407d5b
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x407d20
mov ecx, dword [esp + 0x48]
push ebx
lea eax, [esp + 0x24]
push eax
push 0x4700
push ecx
push esi
mov dword [esp + 0x34], ebx
call ebp
cmp dword [esp + 0x20], 0x4700
mov ebp, 1
je 0x407d5f
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
xor eax, eax
mov dword [ecx], eax
mov dword [ecx + 4], eax
cmp edi, ebx
je 0x407d78
push ecx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x407dac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebp
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x30
ret 8

Function at 0x408a20
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, 1
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
test byte [0x4ee838], al
jne 0x408a41
or dword [0x4ee838], eax
call esi
mov dword [0x4ee834], eax
call esi
mov ecx, eax
sub ecx, dword [0x4ee834]
pop esi
cmp ecx, 0x1388
jle 0x408a63
mov dword [0x4ee834], eax
mov dword [0x4ee774], 0
ret
Function at 0x40a020
Capabilities:
Get common file path

Disassembly:
sub esp, 0x34
mov eax, dword [0x4e3f80]
xor eax, esp
mov dword [esp + 0x2c], eax
push str.driveNotifyMsg
call dword [sym.imp.USER32.dll_RegisterWindowMessageW]
mov ecx, dword [0x4ee77c]
mov dword [0x4e5480], eax
lea eax, [esp]
push eax
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x40a093
mov ecx, dword [0x4e5480]
mov edx, dword [esp]
lea eax, [esp + 4]
push eax
push 1
push ecx
push 0x1e0
mov dword [esp + 0x14], edx
mov edx, dword [0x4ee77c]
push 0x2381f
push edx
mov dword [esp + 0x20], 1
call dword [sym.imp.SHELL32.dll_SHChangeNotifyRegister]
mov dword [0x4ee770], 0
mov ecx, dword [0x4d26f0]
mov edx, dword [0x4d26f4]
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x28], eax
mov eax, dword [0x4d26ec]
mov dword [esp + 0x1c], ecx
push 0
lea ecx, [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [0x4ee77c]
mov dword [esp + 0x1c], eax
mov eax, dword [0x4d26f8]
push ecx
push edx
mov dword [esp + 0x18], 0x20
mov dword [esp + 0x1c], 3
mov dword [esp + 0x30], eax
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov ecx, dword [esp + 0x2c]
xor ecx, esp
mov dword [0x4ee76c], eax
call fcn.0049dc2a
add esp, 0x34
ret