joyce8/EMBER2024-capa huggingface dataset:
Function at 0x635014
Capabilities:
Shutdown system

Disassembly:
push ebx
add esp, 0xffffffe8
mov ebx, eax
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x63506f
lea eax, [esp + 0xc]
push eax
push 0x635074
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push ebx
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
pop ebx
ret

Function at 0x6363bc
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407578
xor eax, eax
push ebp
push 0x636465
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, 1
call fcn.00408490
push 0
mov eax, dword [ebp - 8]
call fcn.004082fc
push eax
mov eax, dword [ebp - 4]
call fcn.004082fc
mov esi, eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
mov ebx, eax
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00408490
push ebx
mov eax, dword [ebp - 8]
call fcn.004082fc
push eax
push esi
call sub.kernel32.dll_ExpandEnvironmentStringsW
test eax, eax
je 0x636440
mov eax, dword [ebp - 8]
call fcn.004082fc
mov edx, eax
mov eax, edi
call fcn.00408364
jmp 0x63644a
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00407874
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x63646c
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074f4
ret

Function at 0x636474
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe8
mov dword [esp], eax
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x636493
cmp eax, 1
jae 0x636499
jmp 0x636542
jl 0x636542
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jmp 0x636523
push dword [esp + 0x14]
push dword [esp + 0x14]
mov eax, dword [esp + 8]
call fcn.00499530
lea edx, [esp + 4]
mov ecx, 8
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0xc]
dec esi
test esi, esi
jl 0x6364ee
inc esi
xor edi, edi
lea ebx, [esp + 4]
mov ecx, edi
mov al, 2
shl al, cl
xor byte [ebx], al
inc edi
inc ebx
dec esi
jne 0x6364e1
push dword [esp + 0x14]
push dword [esp + 0x14]
mov eax, dword [esp + 8]
call fcn.00499530
lea edx, [esp + 4]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp]
mov ebx, dword [eax]
call dword [ebx + 0x10]
cmp dword [esp + 0xc], 8
jl 0x636542
mov eax, dword [esp + 0xc]
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx]
cmp edx, dword [esp + 0x14]
jne 0x63653c
cmp eax, dword [esp + 0x10]
ja 0x6364ab
jmp 0x636542
jg 0x6364ab
add esp, 0x18
pop edi
pop esi
pop ebx
ret
Function at 0x6365f4
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
mov byte [ebp - 1], 0
mov dl, 2
mov ecx, 0x20
xor esi, esi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov dword [ebp - 0x14], ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
lea ebx, [ebp - 8]
push ebx
mov ebx, dword [ebp - 0x1c]
push ebx
mov ebx, dword [ebp - 0x18]
push ebx
mov ebx, dword [ebp - 0x14]
push ebx
mov ebx, dword [ebp - 0x10]
push ebx
push edi
push esi
push eax
push ecx
push edx
push 0x6872f0
call sub.advapi32.dll_AllocateAndInitializeSid
test eax, eax
je 0x636690
xor eax, eax
push ebp
push 0x636689
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
call sub.advapi32.dll_CheckTokenMembership
test eax, eax
je 0x636672
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x636690
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_FreeSid
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x63671c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd7c
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x284], ecx
mov dword [ebp - 0x280], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x27c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407578
lea eax, [ebp - 0x278]
mov edx, dword [0x416ec0]
call fcn.00408cd0
xor eax, eax
push ebp
push 0x6368ac
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x27c]
mov edx, dword [eax]
call dword [edx + 0x48]
mov eax, dword [ebp - 4]
test eax, eax
je 0x63677f
sub eax, 4
mov eax, dword [eax]
dec eax
jl 0x636870
lea edx, [ebp - 0x280]
mov eax, dword [ebp - 4]
call fcn.004249f4
mov edx, dword [ebp - 0x280]
lea eax, [ebp - 4]
call fcn.004078bc
lea eax, [ebp - 0x284]
mov ecx, 0x6368c8
mov edx, dword [ebp - 4]
call fcn.00408568
mov eax, dword [ebp - 0x284]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.0041d4e8
mov ebx, eax
xor eax, eax
push ebp
push 0x636869
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
jne 0x636850
mov eax, dword [ebp - 0x264]
mov edx, 0x6368d8
call fcn.004086a0
je 0x63683f
mov eax, dword [ebp - 0x264]
mov edx, 0x6368e8
call fcn.004086a0
je 0x63683f
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.00408568
mov eax, dword [ebp - 8]
call fcn.004082fc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x63683f
test esi, 0x10
je 0x63683f
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x278]
call fcn.0041d538
mov ebx, eax
test ebx, ebx
je 0x6367df
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x636870
lea eax, [ebp - 0x278]
call fcn.0041d55c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6368b3
lea eax, [ebp - 0x284]
mov edx, 2
call fcn.004074f4
lea eax, [ebp - 0x278]
mov edx, dword [0x416ec0]
call fcn.00408da8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004074f4
ret
Function at 0x6368f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd70
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x290], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0x27d], cl
mov dword [ebp - 0x27c], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407578
mov eax, dword [ebp + 0xc]
call fcn.00407578
lea eax, [ebp - 0x278]
mov edx, dword [0x416ec0]
call fcn.00408cd0
xor eax, eax
push ebp
push 0x636b39
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x288]
mov eax, dword [ebp - 4]
call fcn.004249f4
mov edx, dword [ebp - 0x288]
lea eax, [ebp - 4]
call fcn.004078bc
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x636979
sub eax, 4
mov eax, dword [eax]
dec eax
jge 0x636989
lea eax, [ebp + 0xc]
mov edx, 0x636b58
call fcn.004078bc
lea eax, [ebp - 0x28c]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
call fcn.00408568
mov eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x278]
mov edx, 0x1ff
call fcn.0041d4e8
mov edi, eax
mov dl, 1
mov eax, dword [0x477190]
call fcn.004994b0
mov dword [ebp - 0x284], eax
xor eax, eax
push ebp
push 0x636a87
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
jne 0x636a6e
mov eax, dword [ebp - 0x264]
mov edx, 0x636b68
call fcn.004086a0
je 0x636a59
mov eax, dword [ebp - 0x264]
mov edx, 0x636b78
call fcn.004086a0
je 0x636a59
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x264]
mov edx, dword [ebp - 4]
call fcn.00408568
mov eax, dword [ebp - 8]
call fcn.004082fc
push eax
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x636a59
test esi, 0x10
jne 0x636a59
mov bl, 1
cmp byte [ebp + 8], 0
je 0x636a47
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x58]
inc eax
jle 0x636a47
xor ebx, ebx
test bl, bl
je 0x636a59
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x27c]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
lea eax, [ebp - 0x278]
call fcn.0041d538
mov edi, eax
test edi, edi
je 0x6369da
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x636a8e
lea eax, [ebp - 0x278]
call fcn.0041d55c
ret
Function at 0x648754
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov byte [ebp - 5], dl
mov esi, eax
xor eax, eax
push ebp
push 0x6488d3
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [esi + 0x1c]
call fcn.00407494
xor eax, eax
mov dword [esi + 0x18], eax
xor eax, eax
mov dword [esi + 0x7c], eax
movzx eax, byte [esi + 0x20]
sub al, 1
jb 0x6487cb
je 0x64879e
dec al
je 0x6487ad
dec al
je 0x6487bc
jmp 0x6488b0
call fcn.00644cc0
call fcn.00644c50
mov dword [esi + 0x7c], eax
jmp 0x6487d8
call fcn.00644cdc
call fcn.00644c50
mov dword [esi + 0x7c], eax
jmp 0x6487d8
call fcn.00644cf8
call fcn.00644c50
mov dword [esi + 0x7c], eax
jmp 0x6487d8
call fcn.00644d14
call fcn.00644c50
mov dword [esi + 0x7c], eax
cmp dword [esi + 0x7c], 0
jne 0x6487ea
mov eax, esi
call fcn.00647ec8
jmp 0x6488b0
lea eax, [ebp - 4]
mov edx, dword [esi + 0x28]
mov ecx, 0
call fcn.00408018
lea edx, [ebp - 4]
mov eax, dword [esi + 0x7c]
call fcn.00644c1c
cmp byte [esi + 0x54], 0
je 0x64881c
xor ecx, ecx
mov edx, 1
mov eax, dword [esi + 0x7c]
call fcn.00645124
jmp 0x648828
xor ecx, ecx
xor edx, edx
mov eax, dword [esi + 0x7c]
call fcn.00645124
mov edx, 0x647cf0
mov eax, dword [esi + 0x7c]
call fcn.00644f10
mov edx, esi
mov eax, dword [esi + 0x7c]
call fcn.00644f38
cmp byte [ebp - 5], 0
je 0x648884
cmp dword [esi + 0x2c], 0
jne 0x648884
cmp dword [esi + 0x34], 0
jne 0x648884
cmp dword [esi + 0x40], 0
jne 0x648884
cmp dword [esi + 0x3c], 0
jne 0x648884
lea edx, [ebp - 0x10]
mov edi, dword [esi + 0x10]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx + 0x88]
mov edx, dword [ebp - 0x10]
lea ecx, [ebp - 0xc]
mov eax, edi
call fcn.00640a20
mov edx, dword [ebp - 0xc]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, esi
call fcn.00648414
test al, al
je 0x6488b0
xor eax, eax
mov dword [esi + 0x78], eax
mov eax, dword [esi + 0x7c]
call fcn.00644f90
mov edi, eax
mov dword [esi + 0x78], edi
test edi, edi
jne 0x6488ae
mov eax, esi
call fcn.00647ec8
jmp 0x6488b0
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6488da
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.004074f4
lea eax, [ebp - 4]
call fcn.004074b8
ret

Function at 0x649a18
Capabilities:
Get memory capacity

Disassembly:
push ebx
add esp, 0xffffffe0
mov ebx, eax
mov dword [esp], 0x20
push esp
call sub.kernel32.dll_GlobalMemoryStatus
mov eax, dword [esp + 8]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0xc]
mov dword [ebx + 0x30], eax
add esp, 0x20
pop ebx
ret
Function at 0x41f37f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
push 0x80000301
push 0
push 0x200
push 1
mov ebx, 0x184
call fcn.0045d830
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41f3c4
push ebx
call fcn.004590a2
add esp, 4
pop eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
call fcn.0040d527
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 8]
push 0x200
push 0xd
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x41f403
push 6
call fcn.004590a8
add esp, 4
mov eax, dword [ebp - 4]
test eax, eax
je 0x41f41f
push eax
mov ebx, eax
call fcn.00401124
inc eax
push eax
call fcn.0045909c
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x41f424
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x41f435
push ebx
call fcn.004590a2
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x42321b
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045d870
add esp, 0x10
mov dword [ebp - 4], eax
push 0x80000101
push 0
push 0
push 1
mov ebx, 0x140
call fcn.0045d870
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 1
push dword [ebp - 8]
push dword [ebp - 4]
push str.http:__www.139sfw.com
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x42329f
push 6
call fcn.004590a8
add esp, 4
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4232af
push ebx
call fcn.004590a2
add esp, 4
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x4232bf
push ebx
call fcn.004590a2
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x431002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x58222c52
nop
test eax, eax
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
mov ecx, 0x795b696a
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x100385e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1005274]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x10038f3
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100387c
sub eax, edx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
ja 0x10038f3
push esi
push ecx
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcscpy_s
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x10038ad
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x20c]
dec eax
dec eax
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x10038d3
cmp cx, 0x2f
jne 0x10038da
xor ecx, ecx
mov word [eax], cx
jmp 0x10038c2
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x10038f5
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.010042bd
leave
ret
Function at 0x1003906
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x768
mov eax, dword [0x1005274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [edi + 4]
mov dword [ebp - 0x768], eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
mov ecx, dword [edi + 4]
mov eax, ecx
add esp, 0xc
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x1003946
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100395b
sub eax, ecx
sar eax, 1
push 0x1001d40
lea eax, [ebp + eax*2 - 0x20c]
push ebx
push eax
mov dword [ebp - 0x764], eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x760], eax
cmp eax, 0xffffffff
jne 0x10039b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1003b41
mov ecx, 0x1001d3c
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10039e7
test dx, dx
je 0x10039e3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10039e7
add eax, 4
add ecx, 4
test dx, dx
jne 0x10039c1
xor eax, eax
jmp 0x10039ec
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003b07
mov ecx, 0x1001d34
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1003a25
test dx, dx
je 0x1003a21
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1003a25
add eax, 4
add ecx, 4
test dx, dx
jne 0x10039ff
xor eax, eax
jmp 0x1003a2a
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1003b07
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
push eax
push ebx
push dword [ebp - 0x764]
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [edi + 0xc]
add esp, 0x10
test eax, eax
je 0x1003a6b
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push 0x104
lea eax, [ebp - 0x730]
push eax
push dword [edi + 8]
call fcn.01003dc5
test eax, eax
je 0x1003b07
cmp dword [edi + 0xc], 0
je 0x1003ae4
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x30c]
push eax
lea edx, [ebp - 0x20c]
call fcn.0100378b
test eax, eax
je 0x1003ae4
test byte [ebp - 0x75c], 0x10
je 0x1003b07
lea esi, [ebp - 0x30c]
call fcn.0100385e
test eax, eax
je 0x1003b07
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
mov eax, esi
push eax
mov eax, dword [ebp + 8]
call fcn.010035d0
jmp 0x1003b07
lea esi, [ebp - 0x20c]
call fcn.0100385e
test eax, eax
je 0x1003b07
mov eax, esi
push eax
mov eax, dword [ebp - 0x768]
call fcn.010036a9
mov esi, eax
test esi, esi
jne 0x1003b24
lea eax, [ebp - 0x75c]
push eax
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x10039b6
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x1003b3f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1003b3f
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.010042bd
leave
ret 8
Function at 0x10042a3
Capabilities:
Terminate process

Disassembly:
push 0x10
push 0x1004768
call fcn.01004494
xor ebx, ebx
mov dword [ebp - 4], ebx
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x1c], ebx
mov edi, 0x1006d0c
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x10040b8
cmp eax, esi
jne 0x10040ab
xor esi, esi
inc esi
mov dword [ebp - 0x1c], esi
jmp 0x10040bb
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1004092
xor esi, esi
inc esi
mov eax, dword [0x1006d08]
cmp eax, esi
jne 0x10040ce
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x1004109
mov eax, dword [0x1006d08]
test eax, eax
jne 0x1004103
mov dword [0x1006d08], esi
push 0x1001164
push 0x1001158
call fcn.0100400f
pop ecx
pop ecx
test eax, eax
je 0x1004109
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x10041d3
mov dword [0x100533c], esi
mov eax, dword [0x1006d08]
cmp eax, esi
jne 0x100412d
push 0x1001154
push 0x100114c
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x1006d08], 2
cmp dword [ebp - 0x1c], ebx
jne 0x100413a
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1006d10], ebx
je 0x100415b
push 0x1006d10
call fcn.01004409
pop ecx
test eax, eax
je 0x100415b
push ebx
push 2
push ebx
call dword [0x1006d10]
push dword [0x1005324]
push dword [0x1005328]
push dword [0x1005320]
call fcn.01002341
add esp, 0xc
mov dword [0x1005338], eax
cmp dword [0x100532c], ebx
jne 0x10041b9
push eax
call dword [sym.imp.msvcrt.dll_exit]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov ecx, dword [ecx]
mov dword [ebp - 0x20], ecx
push eax
push ecx
call sub.msvcrt.dll__XcptFilter
pop ecx
pop ecx
ret
cmp dword [0x100533c], ebx
jne 0x10041c7
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1005338]
call fcn.010044d9
ret
call fcn.010045e1
jmp 0x1004070
Function at 0x101821a
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 4]
push esi
mov esi, dword [0x1034c1c]
push edi
xor edi, edi
mov dword [0x1034c14], ecx
mov eax, dword [eax]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x18], edi
mov dword [0x1034c10], eax
cmp esi, edi
je 0x10183cf
cmp dword [esi + 0x20], edi
je 0x10183cf
mov eax, dword [esi + 0x20]
mov ecx, dword [eax + 0xc]
cmp ecx, edi
je 0x10183cf
cmp dword [eax + 0x10], edi
je 0x10183cf
add ecx, 0x10
push ecx
call fcn.010180e3
cmp eax, edi
mov dword [ebp + 8], eax
jl 0x10183cf
mov eax, dword [esi + 0xc]
push dword [eax + 0x58]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
call fcn.01018116
test eax, eax
je 0x10183cf
cmp dword [ebp - 8], edi
je 0x10183cf
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x64
xor edx, edx
div dword [ebp - 8]
xor edx, edx
push edi
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
imul eax, eax, 0x64
div dword [ebp - 8]
xor edx, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x64
div dword [ebp - 8]
shr dword [ebp - 8], 0x14
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push edi
push 0x20007
push edi
push edi
push edi
push 0x10119e8
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10183c1
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 4
lea eax, [ebp - 8]
push eax
push 4
push edi
push 0x10119cc
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x10183c0
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0x10119a4
push dword [ebp - 4]
call esi
push 0x1011978
push dword [ebp - 4]
call esi
push 0x101194c
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], edi
jbe 0x10183b9
cmp dword [ebp + 8], 0xf
jl 0x1018375
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push edi
push 0x101194c
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x10183c0
cmp dword [ebp - 0x10], edi
jbe 0x10183b9
cmp dword [ebp + 8], 0xa
jl 0x1018397
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push edi
push 0x1011978
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x10183c0
cmp dword [ebp - 0x14], edi
jbe 0x10183b9
cmp dword [ebp + 8], 5
jl 0x10183b9
push 4
lea eax, [ebp - 0x14]
push eax
push 4
push edi
push 0x10119a4
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x10183c0
mov dword [ebp - 0x18], 1
pop ebx
cmp dword [ebp - 4], edi
je 0x10183cf
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
leave
ret 4