joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402590
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc74
push edi
push esi
push ebx
push 0x1f550e
push 1
push 0
call fcn.0040943c
mov dword [0x1fc932], eax
call fcn.0040949c
or eax, eax
jne 0x402690
push dword [0x1fc932]
call fcn.0040941e
push 0x12c
lea eax, [ebp - 0x384]
push eax
push dword [0x1fc92e]
call fcn.004094a8
push 0x12c
lea eax, [ebp - 0x12c]
push eax
call fcn.004094ba
lea ecx, [ebp - 0x12c]
cmp byte [eax + ecx - 1], 0x5c
je 0x402602
mov word [eax + ecx], 0x5c
lea eax, [ebp - 0x12c]
push eax
push 0x1f5769
lea eax, [ebp - 0x258]
push eax
call fcn.00409412
add esp, 0xc
lea eax, [ebp - 0x38c]
push eax
lea eax, [ebp - 0x388]
push eax
lea eax, [ebp - 0x384]
push eax
call fcn.00402760
mov edi, dword [ebp - 0x388]
cmp word [edi], 0x5a4d
jne 0x402655
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x402655
xor word [edi + 0x16], 0x2000
push dword [ebp - 0x38c]
push dword [ebp - 0x388]
lea eax, [ebp - 0x258]
push eax
call fcn.004026b0
cmp eax, 0xffffffff
je 0x40267e
lea eax, [ebp - 0x258]
push eax
call fcn.00402710
push 0x8000
push 0
push dword [ebp - 0x388]
call fcn.00409550
push dword [0x1fc932]
call fcn.0040941e
xor eax, eax
pop ebx
pop esi
pop edi
leave
ret

Function at 0x4027f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffb40
push edi
push esi
push ebx
push 0x1f577a
push 0
push 4
call fcn.00409502
or eax, eax
je 0x402868
mov dword [ebp - 0x4bc], eax
push 0
push 0
push 0
push 4
push dword [ebp - 0x4bc]
call fcn.004094fc
mov dword [ebp - 0x4c0], eax
mov ecx, dword [eax]
mov dword [ebp - 0x4b8], ecx
add eax, 4
mov edi, eax
push 0x40
push 0x1000
push dword [ebp - 0x4b8]
push 0
call fcn.0040954a
mov dword [ebp - 0x4b4], eax
push dword [ebp - 0x4b8]
push edi
push dword [ebp - 0x4b4]
call fcn.0040e8ff
jmp 0x402895
push 0x258
lea eax, [ebp - 0x4b0]
push eax
push 0
call fcn.004094a8
lea eax, [ebp - 0x4b8]
push eax
lea eax, [ebp - 0x4b4]
push eax
lea eax, [ebp - 0x4b0]
push eax
call fcn.00402760
mov edi, dword [ebp - 0x4b4]
cmp word [edi], 0x5a4d
jne 0x4028b3
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x4028b3
or word [edi + 0x16], 0x2000
mov edi, dword [ebp - 0x4b4]
mov esi, edi
add esi, dword [esi + 0x3c]
mov ebx, dword [esi + 0x34]
lea esi, [esi + 0x78]
mov eax, dword [esi]
push eax
push edi
call fcn.00402930
add eax, edi
mov eax, dword [eax + 0xc]
push eax
push edi
call fcn.00402930
add edi, eax
push edi
call fcn.00409586
push eax
push 0
push edi
call fcn.0040e930
push dword [ebp + 8]
push edi
call fcn.0040957a
push dword [ebp + 0xc]
call fcn.004029a0
push dword [ebp - 0x4b8]
push dword [ebp - 0x4b4]
push dword [ebp + 0xc]
call fcn.004026b0
push 0x8000
push 0
push dword [ebp - 0x4b4]
call fcn.00409550
pop ebx
pop esi
pop edi
leave
ret 8
Function at 0x402930
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
pushal
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + 0x3c]
add esi, ecx
movzx eax, word [esi + 6]
mov dword [ebp - 8], eax
add esi, 0xf8
mov ebx, esi
add ebx, 0x28
jmp 0x402985
mov ecx, dword [esi + 0xc]
mov eax, dword [ebx + 0xc]
cmp edi, ecx
jb 0x40296c
cmp edi, eax
jae 0x40296c
sub edi, dword [esi + 0xc]
add edi, dword [esi + 0x14]
jmp 0x40298b
cmp edi, ecx
jbe 0x40297c
cmp edi, eax
ja 0x40297c
sub edi, dword [ebx + 0xc]
add edi, dword [ebx + 0x14]
jmp 0x40298b
add ebx, 0x28
add esi, 0x28
dec dword [ebp - 8]
cmp dword [ebp - 8], 0
jne 0x402956
mov dword [ebp - 4], edi
popal
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x403952
Capabilities:
Encode data using xor

Disassembly:
pushal
mov ebp, 4
mov ecx, 0xe0000
lea eax, [esp + 0x28]
mov edx, 0x1000
sub ecx, edx
sub eax, edx
test dword [eax], ecx
cmp ecx, edx
jae 0x403966
push edi
push eax
push ebx
mov ebx, 0x100
mov edi, eax
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [esi + 1]
idiv ecx
add edx, ecx
inc esi
mov dword [edi], edx
add edi, ebp
sub ebx, ebp
jne 0x40397a
pop ebx
pop edi
mov esi, edi
push esi
add edi, 0x100
push ebx
mov eax, dword [esi]
xor edx, edx
mov ecx, dword [esi + 1]
idiv ecx
add edx, ecx
inc esi
mov dword [edi], edx
add edi, ebp
sub ebx, ebp
jne 0x40399a
pop ebx
pop esi
pop edi
mov eax, dword [ebx + esi]
xor dword [ebx + edi - 4], eax
sub ebx, ebp
jne 0x4039b1
popal
ret
Function at 0x408cd0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [0x1fc92e], edi
add ebp, 4
mov ebx, 0xffffffff
push 0x400
push edi
call fcn.004094de
or eax, eax
jne 0x408d19
cmp word [edi], 0x5a4d
jne 0x408d19
add edi, dword [edi + 0x3c]
cmp dword [edi], 0x4550
jne 0x408d19
movzx ecx, word [edi + 0x16]
test ecx, 0x2000
je 0x408d19
xor ebx, ebx
or ebx, ebx
jne 0x408d3a
call fcn.00402520
cmp esi, 1
jne 0x408d33
mov eax, 1
pop ebx
pop esi
pop edi
leave
ret 0xc
pop ebx
pop esi
pop edi
leave
ret 0xc
sub ebp, 4
pop ebx
pop esi
pop edi
leave
ret 0xc

Function at 0x40a2d4
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 + 0x14], 0
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 4]
mov dword [edx], 0x67452301
mov eax, dword [ebp - 4]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret

Function at 0x40cfec
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], ecx
mov byte [ebp - 0x20], 0xfe
mov byte [ebp - 0x1f], 0xdc
mov byte [ebp - 0x1e], 0xba
mov byte [ebp - 0x1d], 0x98
mov byte [ebp - 0x1c], 0x76
mov byte [ebp - 0x1b], 0x54
mov byte [ebp - 0x1a], 0x32
mov byte [ebp - 0x19], 0x10
mov byte [ebp - 0x18], 0xa3
mov byte [ebp - 0x17], 0x9d
mov byte [ebp - 0x16], 0x4a
mov byte [ebp - 0x15], 0x18
mov byte [ebp - 0x14], 0xf8
mov byte [ebp - 0x13], 0x5b
mov byte [ebp - 0x12], 0x4a
mov byte [ebp - 0x11], 0x52
mov byte [ebp - 0x10], 0xfe
mov byte [ebp - 0xf], 0xdc
mov byte [ebp - 0xe], 0xba
mov byte [ebp - 0xd], 0x98
mov byte [ebp - 0xc], 0x76
mov byte [ebp - 0xb], 0x54
mov byte [ebp - 0xa], 0x32
mov byte [ebp - 9], 0x10
mov byte [ebp - 8], 0xa3
mov byte [ebp - 7], 0x3d
mov byte [ebp - 6], 0x4a
mov byte [ebp - 5], 0x18
mov byte [ebp - 4], 0xf8
mov byte [ebp - 3], 0x5b
mov byte [ebp - 2], 0x4a
mov byte [ebp - 1], 0x52
push 0
mov dl, 2
lea ecx, [ebp - 0x48]
call fcn.0040d0bc
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x33], eax
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2f], ecx
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x2b], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x27], eax
mov ecx, dword [ebp - 0x50]
push ecx
mov edx, dword [ebp + 0xc]
shl edx, 3
push edx
mov eax, dword [ebp + 8]
push eax
mov edx, dword [ebp - 0x4c]
lea ecx, [ebp - 0x48]
call fcn.0040d13f
mov esp, ebp
pop ebp
ret 8
Function at 0x40e510
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
and eax, 0xff
cmp eax, 1
je 0x40e53a
mov eax, 0xfffffff7
jmp 0x40e665
mov dword [ebp - 0xc], 0xffffffff
mov ecx, dword [ebp - 0xc]
shr ecx, 0x11
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0x7fff
je 0x40e55d
mov eax, 0xfffffff5
jmp 0x40e665
mov dword [ebp - 0x10], 0
jmp 0x40e56f
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
shl eax, 5
cmp eax, dword [ebp - 0x14]
jge 0x40e589
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4], 0
jmp 0x40e566
mov dword [ebp - 0x10], 0
jmp 0x40e59b
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
shl ecx, 2
cmp ecx, dword [ebp - 0x14]
jge 0x40e663
mov edx, dword [ebp - 0x18]
add edx, dword [ebp - 0x10]
mov al, byte [edx]
mov byte [ebp - 8], al
cmp dword [ebp + 0xc], 0
je 0x40e5c6
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 0x10]
mov dl, byte [ebp - 8]
mov byte [ecx], dl
movsx eax, byte [ebp - 8]
cmp eax, 0x30
jl 0x40e5e4
movsx ecx, byte [ebp - 8]
cmp ecx, 0x39
jg 0x40e5e4
movsx edx, byte [ebp - 8]
sub edx, 0x30
mov dword [ebp - 4], edx
jmp 0x40e627
movsx eax, byte [ebp - 8]
cmp eax, 0x61
jl 0x40e602
movsx ecx, byte [ebp - 8]
cmp ecx, 0x66
jg 0x40e602
movsx edx, byte [ebp - 8]
sub edx, 0x57
mov dword [ebp - 4], edx
jmp 0x40e627
movsx eax, byte [ebp - 8]
cmp eax, 0x41
jl 0x40e620
movsx ecx, byte [ebp - 8]
cmp ecx, 0x46
jg 0x40e620
movsx edx, byte [ebp - 8]
sub edx, 0x37
mov dword [ebp - 4], edx
jmp 0x40e627
mov eax, 0xfffffffe
jmp 0x40e665
mov eax, dword [ebp - 0x10]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov ecx, dword [ebp - 0x10]
xor ecx, 1
and ecx, 7
shl ecx, 2
mov edx, dword [ebp - 4]
shl edx, cl
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + eax*4]
or ecx, edx
mov eax, dword [ebp - 0x10]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov edx, dword [ebp + 8]
mov dword [edx + eax*4], ecx
jmp 0x40e592
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x412528
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff38
mov eax, dword [ebp + 0x10]
shl eax, 3
mov dword [ebp - 4], eax
mov dword [0x1fbe68], 0x67452301
mov dword [0x1fbe6c], 0xefcdab89
mov dword [0x1fbe70], 0x98badcfe
mov dword [0x1fbe74], 0x10325476
cmp dword [ebp + 0x10], 0x40
jle 0x412595
push dword [ebp + 0xc]
lea edx, [ebp - 0xc8]
push edx
call fcn.00412735
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0041278e
pop ecx
add dword [ebp + 0xc], 0x40
sub dword [ebp + 0x10], 0x40
cmp dword [ebp + 0x10], 0x40
jg 0x412568
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov byte [edx + ebp - 0x88], 0
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x80
jl 0x41259a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x88]
push eax
call fcn.0040e8ff
mov eax, dword [ebp + 0x10]
mov byte [eax + ebp - 0x88], 0x80
cmp dword [ebp + 0x10], 0x37
jg 0x412608
push dword [ebp - 4]
lea edx, [ebp - 0x50]
push edx
call fcn.004126fa
add esp, 8
lea ecx, [ebp - 0x88]
push ecx
lea eax, [ebp - 0xc8]
push eax
call fcn.00412735
add esp, 8
lea edx, [ebp - 0xc8]
push edx
call fcn.0041278e
pop ecx
jmp 0x41265a
push dword [ebp - 4]
lea ecx, [ebp - 0x10]
push ecx
call fcn.004126fa
add esp, 8
lea eax, [ebp - 0x88]
push eax
lea edx, [ebp - 0xc8]
push edx
call fcn.00412735
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0041278e
pop ecx
lea eax, [ebp - 0x48]
push eax
lea edx, [ebp - 0xc8]
push edx
call fcn.00412735
add esp, 8
lea ecx, [ebp - 0xc8]
push ecx
call fcn.0041278e
pop ecx
xor eax, eax
mov dword [ebp - 8], eax
mov edx, dword [ebp - 8]
mov byte [edx + ebp - 0x88], 0
inc dword [ebp - 8]
cmp dword [ebp - 8], 0x80
jl 0x41265f
lea ecx, [ebp - 0x88]
push ecx
lea eax, [ebp - 0xc8]
push eax
call fcn.00412735
add esp, 8
push dword [0x1fbe68]
push dword [ebp + 8]
call fcn.004126fa
add esp, 8
push dword [0x1fbe6c]
mov edx, dword [ebp + 8]
add edx, 4
push edx
call fcn.004126fa
add esp, 8
push dword [0x1fbe70]
mov ecx, dword [ebp + 8]
add ecx, 8
push ecx
call fcn.004126fa
add esp, 8
push dword [0x1fbe74]
mov eax, dword [ebp + 8]
add eax, 0xc
push eax
call fcn.004126fa
add esp, 8
xor edx, edx
mov dword [0x1fbe74], edx
mov dword [0x1fbe70], edx
mov dword [0x1fbe6c], edx
mov dword [0x1fbe68], edx
mov esp, ebp
pop ebp
ret
Function at 0x4098f0
Capabilities:
Enumerate processes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Process32FirstW]
push esi
mov esi, ecx
push edi
lea edi, [esi + 0xc]
mov edi, edi
push 0x22c
push 0
push edi
call fcn.004d9c60
add esp, 0xc
mov dword [edi], 0x22c
cmp byte [esi + 8], 0
push edi
push dword [esi + 4]
jne 0x409928
mov byte [esi + 8], 1
call ebx
jmp 0x40992e
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
setne al
test al, al
je 0x40994a
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 4]
call edx
test al, al
je 0x409900
mov eax, edi
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x40b000
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.004e29b0
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x1008]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edx
lea edx, [ebp - 0x804]
mov dword [ebp - 0x1008], 0
push edx
lea edx, [ebp - 0x100c]
mov dword [ebp - 0x100c], 1
push edx
push 0
push eax
push dword [ecx]
mov dword [ebp - 0x1008], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x40b14f
mov ecx, dword [ebp - 0x100c]
cmp ecx, 1
jne 0x40b0e2
cmp word [ebp - 0x804], ax
jne 0x40b0a0
xor ecx, ecx
lea eax, [ebp - 0x804]
push ecx
push eax
mov ecx, edi
call fcn.004063d0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b0b0
sub ecx, edx
lea eax, [ebp - 0x804]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.004063d0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 8
cmp ecx, 2
jne 0x40b14a
push 0x400
lea eax, [ebp - 0x1004]
push eax
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1008], eax
test eax, eax
je 0x40b133
cmp eax, 0x400
ja 0x40b133
lea eax, [ebp - 0x1004]
mov ecx, edi
push eax
call fcn.004041e0
pop edi
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 8
pop edi
mov eax, 0xea
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 8
mov eax, 0x3f4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004d9c43
mov esp, ebp
pop ebp
ret 8
Function at 0x40b8f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
mov edi, ecx
cmp dword [edi], 0
je 0x40b9fb
cmp dword [edi + 4], 0
jl 0x40b9fb
mov eax, dword [edi + 0x24]
lea ecx, [edi + 0x2c]
sub eax, dword [edi + 0x20]
mov edx, dword [edi + 0x1c]
sar eax, 1
push esi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
lea eax, [eax*2 - 2]
mov dword [ebp - 4], edx
mov dword [ecx], eax
xor eax, eax
mov esi, dword [edi + 0x20]
lea ecx, [edi + 8]
cmp esi, dword [edi + 0x24]
cmove esi, eax
call fcn.0041a8c0
lea ecx, [edi + 0x2c]
push ecx
push esi
lea edx, [edi + 0x30]
push edx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
jne 0x40b9dd
mov ecx, dword [edi + 0x2c]
mov eax, dword [edi + 0x24]
inc ecx
sub eax, dword [edi + 0x20]
shr ecx, 1
inc ecx
sar eax, 1
cmp ecx, eax
jbe 0x40b98a
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push ecx
lea ecx, [edi + 0x20]
call fcn.0040bfb0
mov eax, dword [edi + 0x24]
mov ecx, 0x4000
sub eax, dword [edi + 0x20]
sar eax, 1
lea eax, [eax*2 - 2]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0xc]
cmp dword [ebp - 4], eax
mov esi, dword [edi + 0x20]
cmove eax, ecx
xor ecx, ecx
cmp esi, dword [edi + 0x24]
mov edx, eax
mov dword [ebp - 4], eax
cmove esi, ecx
lea ecx, [edi + 8]
call fcn.0041a8c0
lea ecx, [edi + 0x2c]
push ecx
push esi
lea ecx, [edi + 0x30]
push ecx
push 0
lea ecx, [ebp - 4]
push ecx
push eax
push dword [edi + 4]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
pop esi
test eax, eax
jne 0x40b9fb
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
mov eax, dword [edi + 0x20]
inc ecx
shr ecx, 1
xor edx, edx
pop edi
pop ebx
mov word [eax + ecx*2], dx
mov al, 1
mov esp, ebp
pop ebp
ret
cmp dword [edi + 0x1c], 8
lea eax, [edi + 8]
jb 0x40ba06
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
mov eax, dword [edi + 0x20]
mov word [eax], cx
xor al, al
mov dword [edi + 0x2c], ecx
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40bb70
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 8
or eax, 0x20019
push esi
mov esi, ecx
push esi
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40bbbd
push eax
push eax
push eax
push eax
push eax
push eax
push eax
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x40bbd0
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi], 0
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi]
dec ecx
mov dword [esi + 4], ecx
test edx, edx
je 0x40bc06
test ecx, ecx
js 0x40bc06
lea eax, [ebp - 8]
mov dword [ebp + 0x10], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp + 0x10]
push eax
lea eax, [esi + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x40bc0c
xor eax, eax
mov word [esi + 8], ax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x410d20
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x260
mov eax, dword [0x55b0a0]
xor eax, esp
mov dword [esp + 0x25c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
cmp eax, 0x104
jb 0x410d5f
xor al, al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x410d79
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
mov bl, byte [ebp + 0xc]
test bl, bl
jne 0x410ddb
lea ecx, [esp + 0x28]
call fcn.004326e0
mov edx, ecx
mov ecx, esi
call fcn.00412280
test al, al
je 0x410dc4
cmp byte [esp + 0x30], bl
je 0x410dc4
cmp dword [esi + 0x14], 8
jb 0x410da4
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne al
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x410dce
mov eax, dword [esi]
jmp 0x410dd0
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x410d63
xor eax, eax
push 0x208
push eax
mov word [esp + 0x58], ax
lea eax, [esp + 0x5a]
push eax
call fcn.004d9c60
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x410dfd
mov esi, dword [esi]
lea ecx, [esp + 0x50]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x410e01
mov word [esp + 0x24], ax
xorps xmm0, xmm0
mov dword [esp + 8], 0
lea eax, [esp + 0x50]
movq qword [esp + 0x1c], xmm0
movdqu xmmword [esp + 0xc], xmm0
mov dword [esp + 0x10], eax
mov eax, 0x414
mov dword [esp + 0xc], 3
mov word [esp + 0x18], ax
test bl, bl
jne 0x410e56
mov eax, 0x1494
mov word [esp + 0x18], ax
lea eax, [esp + 8]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [esp + 0x1a], 0
jne 0x410d49
test eax, eax
je 0x410e97
cmp eax, 2
je 0x410e97
cmp eax, 0x402
je 0x410e97
cmp eax, 0x7c
je 0x410e97
xor eax, eax
pop esi
pop ebx
mov ecx, dword [esp + 0x25c]
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x264]
mov eax, 1
pop esi
pop ebx
xor ecx, esp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x411420
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 0x41142e
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 0x411470
Capabilities:
Check if file exists
Get file attributes

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

Function at 0x411490
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x210]
mov esi, ecx
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x4115af
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x4114e0
xor ecx, ecx
jmp 0x4114ff
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4114f0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x240]
call fcn.0040d920
sub esp, 8
mov edx, esp
cmp dword [eax + 0x14], 8
jb 0x41151c
mov ecx, dword [eax]
jmp 0x41151e
mov ecx, eax
mov dword [edx], ecx
lea ecx, [ebp - 0x228]
mov eax, dword [eax + 0x10]
mov dword [edx + 4], eax
call fcn.0040d920
lea ecx, [ebp - 0x228]
call fcn.0040f3a0
lea eax, [ebp - 0x228]
cmp esi, eax
je 0x411552
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00406900
cmp dword [ebp - 0x214], 8
jb 0x411569
push dword [ebp - 0x228]
call fcn.004d8fe0
add esp, 4
xor eax, eax
mov dword [ebp - 0x214], 7
cmp dword [ebp - 0x22c], 8
mov dword [ebp - 0x218], 0
mov word [ebp - 0x228], ax
jb 0x41159d
push dword [ebp - 0x240]
call fcn.004d8fe0
add esp, 4
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor al, al
pop edi
xor ecx, ebp
pop esi
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
Function at 0x4117b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x450
mov eax, dword [0x55b0a0]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push esi
push edi
mov esi, edx
mov dword [ebp - 0x450], 0
jb 0x4117d9
mov ecx, dword [ecx]
lea eax, [ebp - 0x210]
push eax
push 0
push 0x542f78
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x411804
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d9c43
mov esp, ebp
pop ebp
ret
push 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x104
ja 0x4118c7
test eax, eax
je 0x4118c7
xor ecx, ecx
mov dword [ebp - 0x420], 7
push eax
lea eax, [ebp - 0x41c]
mov word [ebp - 0x434], cx
push eax
lea ecx, [ebp - 0x434]
mov dword [ebp - 0x424], 0
call fcn.004063d0
sub esp, 8
lea eax, [ebp - 0x434]
cmp dword [ebp - 0x420], 8
mov ecx, esp
cmovae eax, dword [ebp - 0x434]
mov dword [ecx], eax
mov eax, dword [ebp - 0x424]
mov dword [ecx + 4], eax
lea ecx, [ebp - 0x44c]
call fcn.0040d920
cmp esi, eax
je 0x41189f
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00406900
cmp dword [ebp - 0x438], 8
jb 0x4118b6
push dword [ebp - 0x44c]
call fcn.004d8fe0
add esp, 4
cmp dword [ebp - 0x420], 8
jb 0x411934
push dword [ebp - 0x434]
jmp 0x41192c
sub esp, 8
lea eax, [ebp - 0x210]
mov edx, esp
mov dword [edx], eax
cmp word [ebp - 0x210], 0
jne 0x4118e2
xor ecx, ecx
jmp 0x4118ff
lea ecx, [ebp - 0x210]
lea edi, [ecx + 2]
jmp 0x4118f0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4118f0
sub ecx, edi
sar ecx, 1
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x44c]
call fcn.0040d920
cmp esi, eax
je 0x41191d
push 0xffffffffffffffff
push 0
push eax
mov ecx, esi
call fcn.00406900
cmp dword [ebp - 0x438], 8
jb 0x411934
push dword [ebp - 0x44c]
call fcn.004d8fe0
add esp, 4
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.004d9c43
mov esp, ebp
pop ebp
ret