joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3010a588
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
jne 0x3010a5a0
xor eax, eax
jmp 0x3010a717
mov eax, dword [esi]
cmp eax, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
je 0x3010a5b8
push eax
call fcn.301269f0
mov dword [ebp - 0x18], eax
mov dword [ebp - 8], ebx
push edi
or edi, 0xffffffff
cmp dword [ebp - 8], ebx
jne 0x3010a5d5
cmp dword [0x302781ec], ebx
je 0x3010a5e3
mov dword [ebp - 0x1c], 2
jmp 0x3010a5f0
cmp dword [ebp - 8], 1
jne 0x3010a5e3
cmp dword [0x3027e604], ebx
je 0x3010a5ed
test byte [esi + 0xc], 0x10
je 0x3010a6b1
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x10], ebx
call fcn.301091e5
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
jmp 0x3010a679
mov eax, dword [ebp - 0xc]
cmp eax, ebx
mov esi, dword [ebp - 0x10]
jne 0x3010a618
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp - 0x14]
push ecx
push ebx
push dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 4], 2
mov edi, eax
jae 0x3010a643
cmp dword [ebp - 0x14], 1
je 0x3010a640
cmp dword [ebp - 0x14], 2
jne 0x3010a643
push 2
pop edi
push edi
call fcn.30108e03
test eax, eax
pop ecx
je 0x3010a68c
push 0x796d746f
push ebx
call fcn.3010aab4
push esi
mov ecx, 0x30278200
call fcn.30109383
push ebx
push dword [ebp - 0x1c]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 8]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
call fcn.30109475
mov edi, eax
add esp, 0x14
cmp edi, ebx
je 0x3010a60c
jmp 0x3010a69b
push esi
mov ecx, 0x30278200
call fcn.30109301
cmp edi, ebx
je 0x3010a6c0
cmp dword [0x302781f8], ebx
je 0x3010a6ae
push 0x3027acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov esi, dword [ebp + 8]
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x3010a5bc
jmp 0x3010a6d3
cmp dword [0x302781f8], ebx
je 0x3010a6d7
push 0x3027acb8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp edi, ebx
jne 0x3010a6f7
cmp dword [ebp - 0x14], 2
je 0x3010a6e9
mov eax, dword [ebp + 8]
mov al, byte [eax + 0xc]
and al, 0xf
cmp al, 2
jne 0x3010a6f7
push dword [ebp - 4]
call fcn.30109024
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 0x18], ebx
je 0x3010a704
push dword [ebp - 0x18]
call fcn.30108bc4
cmp edi, ebx
pop edi
je 0x3010a714
push dword [ebp + 8]
call fcn.3010903f
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 4

Function at 0x3010a71d
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.3010a588
Function at 0x3010af8e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x41c], ecx
mov ecx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
test esi, esi
mov dword [ebp - 0x424], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x414], ecx
jne 0x3010afce
xor eax, eax
jmp 0x3010b13b
and dword [esi], 0
push ebx
push edi
mov edi, dword [ebp + 0x20]
xor ebx, ebx
inc ebx
push ebx
push edi
push eax
push 0x400
lea eax, [ebp - 0x404]
push eax
mov dword [ebp - 0x420], ebx
call fcn.30115949
and dword [ebp - 0x410], 0
and dword [ebp - 0x418], 0
shr edi, 0x1a
not edi
mov dword [ebp - 0x408], eax
and edi, ebx
cmp dword [ebp - 0x408], 0
je 0x3010b033
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x17
and eax, ebx
push eax
push 0x120001
call dword [sym.imp.KERNEL32.dll_OpenMutexA]
mov dword [esi], eax
cmp dword [esi], 0
jne 0x3010b0cf
test edi, edi
je 0x3010b0cf
and dword [ebp - 0x40c], 0
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.301157c7
test eax, eax
je 0x3010b0b5
mov eax, dword [ebp + 0x20]
push dword [ebp - 0x408]
shr eax, 0x19
and eax, ebx
push eax
push dword [ebp - 0x414]
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
push ebx
lea eax, [ebp - 0x414]
push eax
push dword [ebp + 0x20]
call fcn.30115901
cmp dword [ebp - 0x40c], 5
jne 0x3010b0b5
cmp dword [ebp - 0x418], 0
jne 0x3010b0b5
mov dword [ebp - 0x418], ebx
jmp 0x3010b00e
cmp dword [esi], 0
je 0x3010b0cf
xor eax, eax
cmp dword [ebp - 0x40c], 0xb7
setne al
mov dword [ebp - 0x410], eax
mov eax, dword [esi]
xor ecx, ecx
cmp eax, ecx
je 0x3010b0dc
cmp eax, 0xffffffff
jne 0x3010b0fb
cmp edi, ecx
je 0x3010b0eb
push ecx
push 0x787a6c65
call fcn.3010aa60
xor ecx, ecx
mov dword [esi], ecx
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x420], ecx
cmp dword [ebp - 0x41c], ecx
pop edi
pop ebx
je 0x3010b123
mov eax, dword [ebp - 0x408]
cmp eax, ecx
jne 0x3010b114
mov eax, 0x300024e9
push dword [ebp + 0x14]
push dword [ebp - 0x41c]
push eax
call fcn.30125616
mov eax, dword [ebp - 0x424]
test eax, eax
je 0x3010b135
mov ecx, dword [ebp - 0x410]
mov dword [eax], ecx
mov eax, dword [ebp - 0x420]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30136bd1
leave
ret 0x1c

Function at 0x3010bdc2
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x3010be08
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.3012b1b5
mov edi, eax
cmp edi, 0xffffffff
je 0x3010be07
push esi
lea eax, [ebp + 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
ret
Function at 0x3010c074
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push edi
xor edi, edi
cmp ebx, edi
mov dword [ebp - 4], edi
jne 0x3010c096
push edi
push 0x36717370
call fcn.3010aa60
jmp 0x3010c1d3
push esi
mov esi, dword [ebp + 0x10]
cmp esi, edi
jne 0x3010c0a9
push edi
push 0x36717371
jmp 0x3010c1a8
cmp dword [ebp + 8], 2
je 0x3010c0c6
cmp dword [ebp + 8], 8
je 0x3010c0c6
cmp dword [ebp + 8], 3
je 0x3010c0c6
push edi
push 0x36717372
jmp 0x3010c1a8
cmp dword [ebx], edi
je 0x3010c0d5
push edi
push 0x36717373
call fcn.3010aa60
cmp dword [esi], edi
je 0x3010c0e4
push edi
push 0x37667270
call fcn.3010aa60
push esi
push edi
push dword [ebp + 8]
mov dword [esi], edi
call sub.Secur32.dll_GetUserNameExW
movzx edi, al
call dword [sym.imp.KERNEL32.dll_GetLastError]
test edi, edi
jne 0x3010c1af
cmp eax, 0xea
jne 0x3010c1af
mov eax, dword [esi]
push 2
xor ecx, ecx
pop edx
mul edx
seto cl
neg ecx
or eax, ecx
push eax
call fcn.301089da
test eax, eax
mov dword [ebx], eax
jne 0x3010c133
push eax
push 0x36717375
jmp 0x3010c1b6
mov ecx, dword [esi]
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
push eax
push edi
call sub.Secur32.dll_GetUserNameExW
test al, al
jne 0x3010c153
push 0
push 0x36717376
jmp 0x3010c1b6
mov eax, dword [esi]
dec eax
cmp dword [ebp - 4], eax
je 0x3010c167
push 0
push 0x36717377
call fcn.3010aa60
cmp edi, 2
jne 0x3010c183
push dword [esi]
push dword [ebx]
call fcn.3010ba1a
test eax, eax
pop ecx
pop ecx
jne 0x3010c1d2
push eax
push 0x36717378
jmp 0x3010c1b6
cmp edi, 8
jne 0x3010c19c
push dword [ebx]
call fcn.3010ba89
test eax, eax
pop ecx
jne 0x3010c1d2
push eax
push 0x36717379
jmp 0x3010c1b6
cmp edi, 3
je 0x3010c1d2
push 0
push 0x3671737a
call fcn.3010aa60
jmp 0x3010c1d2
push 0
push 0x36717374
call fcn.3010aa60
mov eax, dword [ebx]
xor edi, edi
cmp eax, edi
je 0x3010c1cc
push eax
call fcn.300ee73d
pop ecx
mov dword [ebx], edi
cmp dword [esi], edi
je 0x3010c1d2
mov dword [esi], edi
pop esi
pop edi
pop ebx
leave
ret
Function at 0x3010c946
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.301374d4
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x107c], eax
mov ebx, 0x824
lea eax, [ebp - 0x106c]
push ebx
push eax
call fcn.3010c66d
test eax, eax
pop ecx
pop ecx
jne 0x3010c987
or eax, 0xffffffff
jmp 0x3010cb18
cmp word [ebp - 0x106c], 0
push esi
lea esi, [ebp - 0x106c]
push edi
mov dword [ebp - 0x1078], esi
je 0x3010c9ad
inc esi
inc esi
cmp word [esi], 0
jne 0x3010c99f
mov dword [ebp - 0x1078], esi
xor edi, edi
inc edi
push edi
call fcn.3010b81e
pop ecx
call fcn.3010b9b2
push eax
call fcn.3010a764
cmp eax, 0x64
mov dword [ebp - 0x1070], eax
mov dword [ebp - 0x1084], eax
jbe 0x3010c9d9
mov dword [ebp - 0x1070], edi
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfA]
lea eax, [ebp - 0x106c]
sub esi, eax
sar esi, 1
mov dword [ebp - 0x1074], ebx
sub dword [ebp - 0x1074], esi
mov esi, 0x80
mov ebx, 0xc0000000
push dword [ebp - 0x1070]
lea eax, [ebp - 0x24]
push 0x30006338
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1078]
push eax
call fcn.30123c26
xor eax, eax
push eax
push eax
push esi
push 1
push eax
push 1
push ebx
lea eax, [ebp - 0x106c]
push eax
call fcn.3012b1b5
cmp eax, 0xffffffff
mov dword [ebp - 0x1080], eax
jne 0x3010cac3
cmp dword [ebp - 0x1070], 0x64
jb 0x3010ca5c
and dword [ebp - 0x1070], 0
inc dword [ebp - 0x1070]
mov eax, dword [ebp - 0x1070]
cmp eax, dword [ebp - 0x1084]
jne 0x3010c9ff
push eax
push 0x30006338
lea eax, [ebp - 0x24]
push 0x1f
push eax
call edi
add esp, 0x10
push dword [ebp - 0x1074]
lea eax, [ebp - 0x24]
push dword [ebp - 0x1078]
push eax
call fcn.30123c26
push esi
lea eax, [ebp - 0x106c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor edi, edi
push edi
push edi
push esi
push 2
push edi
push 1
push ebx
lea eax, [ebp - 0x106c]
push eax
call fcn.3012b1b5
mov dword [ebp - 0x1080], eax
jmp 0x3010cac5
xor edi, edi
cmp dword [ebp - 0x1070], 0x64
jb 0x3010cad4
mov dword [ebp - 0x1070], edi
mov eax, dword [ebp - 0x1070]
inc eax
push eax
call fcn.3010b9b2
push eax
call fcn.3010a78c
push dword [0x3022f8d4]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [ebp - 0x107c], edi
pop edi
pop esi
je 0x3010cb12
push dword [ebp + 0xc]
lea eax, [ebp - 0x106c]
push dword [ebp - 0x107c]
push eax
call fcn.301255f4
mov eax, dword [ebp - 0x1080]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret
Function at 0x3010d8f4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0xffffffff
jne 0x3010d904
xor eax, eax
leave
ret
push esi
push edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
xor esi, esi
lea eax, [ebp - 0xc]
xor edi, edi
push eax
inc edi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call fcn.3010be0b
add esp, 0x10
test eax, eax
je 0x3010da3b
cmp dword [ebp - 4], esi
je 0x3010da3b
push ebx
mov ebx, 0x3027acb8
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push esi
call fcn.3010d248
test eax, eax
pop ecx
jne 0x3010d95f
xor edi, edi
jmp 0x3010da33
cmp dword [0x3027af7c], esi
je 0x3010d972
push esi
push 0x72766c72
call fcn.3010aa60
lea eax, [ebp - 0x14]
push eax
mov dword [0x3027af7c], 1
mov dword [ebp - 0x14], esi
call fcn.3010bd2c
cmp eax, dword [ebp - 8]
pop ecx
jne 0x3010d996
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0xc]
je 0x3010d9d1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.3010be57
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.3010be0b
add esp, 0x18
test eax, eax
je 0x3010d9c2
cmp dword [ebp - 4], esi
jne 0x3010d9d1
push esi
push 0x72766c73
call fcn.3010aa60
xor edi, edi
jmp 0x3010d9e7
push dword [ebp + 0xc]
push dword [ebp - 0xc]
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.3010c700
add esp, 0x10
mov edi, eax
cmp edi, esi
mov dword [0x3027af7c], esi
push esi
je 0x3010da29
mov edi, dword [ebp - 8]
lea eax, [ebp - 0x14]
push eax
push edi
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x3010da14
cmp dword [ebp - 0x14], edi
jne 0x3010da14
xor edi, edi
inc edi
jmp 0x3010da16
xor edi, edi
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.3010bdc2
add esp, 0xc
jmp 0x3010da33
push 0x74697970
call fcn.3010aa60
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 4], esi
je 0x3010da5f
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.3010be57
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x3010da65
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2094
call fcn.301374d4
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, 0x824
lea eax, [ebp - 0x104c]
push esi
xor edi, edi
push eax
inc edi
call fcn.3010c66d
test eax, eax
pop ecx
pop ecx
je 0x3010db20
push ebx
push 0x30006348
call fcn.301269f0
mov ebx, eax
test ebx, ebx
je 0x3010db1f
push esi
lea eax, [ebp - 0x104c]
push eax
push ebx
call fcn.30125676
push ebx
call fcn.30108bc4
call fcn.3010d8e1
test eax, eax
je 0x3010db1d
call fcn.3010d83a
test eax, eax
je 0x3010db1d
call fcn.3010d7f9
lea eax, [ebp - 0x2094]
push esi
push eax
call fcn.3010c946
lea ecx, [ebp - 0x104c]
push ecx
push 1
push eax
call fcn.3010d8f4
mov edi, eax
add esp, 0x14
test edi, edi
lea eax, [ebp - 0x2094]
jne 0x3010db0d
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x3010db1d
push 0x104
push 0x3027ad5c
push eax
call fcn.301255f4
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.30136bd1
leave
ret

Function at 0x3010db2e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x3010db3d
xor eax, eax
jmp 0x3010db7f
push esi
call fcn.3010d248
test eax, eax
pop ecx
je 0x3010db39
push edi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push dword [ebp + 8]
call fcn.3012b1b5
push esi
push esi
push eax
call fcn.3010d8f4
mov edi, eax
add esp, 0xc
cmp edi, esi
jne 0x3010db7c
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x3010db84
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
push esi
call fcn.3012b119
mov edi, eax
test edi, edi
je 0x3010dc0b
cmp edi, esi
ja 0x3010dc0b
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x3000648c
sub esi, edi
lea eax, [ebx + edi*2]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
test eax, eax
jle 0x3010dc0b
xor esi, esi
push esi
call fcn.3010d248
test eax, eax
pop ecx
je 0x3010dbe0
push ebx
call fcn.3010db2e
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x3010dc0b
push esi
call fcn.3010d248
test eax, eax
pop ecx
jne 0x3010dc0b
cmp word [0x3027ad5c], si
je 0x3010dc0b
xor esi, esi
inc esi
push esi
push ebx
push 0x3027ad5c
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
je 0x3010dc0b
mov dword [ebp - 4], esi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x3010f223
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
push dword [0x3027b0d8]
mov edi, dword [ebp + 0x14]
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.3010eaea
add esp, 0x10
call fcn.3010f1b6
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.3010eaea
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx eax, ax
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.3010eaea
call fcn.3010f7d0
movzx eax, ax
push eax
lea eax, [ebp + 0x18]
push eax
push edi
push esi
call fcn.3010eaea
push dword [ebp + 0x18]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.3010ea90
add esp, 0x30
pop edi
pop esi
pop ebp
ret
Function at 0x3010f500
Capabilities:
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x3027acd0]
sub esp, 0x18
push ebx
push esi
push edi
mov dword [0x3027b0cc], eax
mov eax, dword [0x3027b0b4]
xor edi, edi
cmp eax, edi
je 0x3010f53c
push eax
call fcn.3010a764
push dword [0x3027acd0]
mov dword [0x3027b0cc], eax
push dword [0x3027b0b4]
call fcn.3010a78c
jmp 0x3010f5b2
mov eax, dword [0x3027b0b8]
cmp eax, edi
je 0x3010f5b2
or dword [ebp - 8], 0xffffffff
lea ecx, [ebp - 8]
push ecx
push 0x2001f
push eax
push SysReAllocString
mov dword [ebp - 0x18], 4
call fcn.3010ac7b
test eax, eax
jne 0x3010f5b2
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
mov esi, 0x30006da4
push esi
push dword [ebp - 8]
call fcn.3010accd
test eax, eax
jne 0x3010f5a9
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x18]
mov dword [0x3027b0cc], eax
mov eax, dword [0x3027acd0]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x14]
push esi
push dword [ebp - 8]
call fcn.3010aceb
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x3022f8c4], edi
je 0x3010f5cb
call fcn.3010f4df
push eax
push dword [0x3022f8c4]
call fcn.3010a78c
call fcn.3010f4df
mov esi, eax
call fcn.3010f4be
mov ebx, eax
cmp esi, ebx
je 0x3010f6e1
movzx eax, si
push eax
call fcn.3012ba2a
test eax, eax
jne 0x3010f5ff
movzx eax, bx
push eax
call fcn.3012ba2a
test eax, eax
je 0x3010f6e1
lea eax, [ebp - 4]
push eax
push 0x20019
push 0x30005d28
call fcn.30109a0a
test eax, eax
jne 0x3010f6e1
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x10]
push eax
push edi
push edi
push edi
push edi
push edi
push edi
push dword [ebp - 4]
mov dword [ebp - 0x10], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x3010f6e1
imul eax, eax, 0x104
push eax
lea eax, [ebp - 0xc]
mov esi, 0x104
push eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 8], edi
call fcn.30108c70
test eax, eax
jne 0x3010f669
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x3010f6e1
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0xc]
push edi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x3010f6b5
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x10]
jae 0x3010f6b5
add dword [ebp - 0x18], esi
mov ecx, dword [ebp - 0x18]
inc dword [ebp - 8]
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0xc]
add ecx, eax
push ecx
push dword [ebp - 8]
mov dword [ebp - 0x14], esi
push dword [ebp - 4]
call ebx
test eax, eax
je 0x3010f687
mov ebx, dword [ebp - 8]
cmp ebx, edi
jle 0x3010f6d0
mov eax, dword [ebp - 0xc]
add eax, edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add edi, esi
dec ebx
jne 0x3010f6bc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp - 0xc]
call fcn.30108bc4
pop edi
pop esi
pop ebx
leave
ret
Function at 0x30110087
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
xor ebx, ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
je 0x301100f7
push esi
lea eax, [ebp - 4]
push eax
call fcn.30108c70
test eax, eax
je 0x301100f7
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x301100ef
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x30002304
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x301100ef
cmp dword [ebp - 8], ebx
je 0x301100ef
mov esi, dword [ebp - 0xc]
push edi
mov edi, dword [ebp + 0xc]
push 0xd
pop ecx
rep movsd dword es:[edi], dword [esi]
mov bl, 1
pop edi
push dword [ebp - 4]
call fcn.30108bc4
pop esi
mov al, bl
pop ebx
leave
ret

Function at 0x301103db
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x364
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x40
xor esi, esi
lea eax, [ebp - 0x360]
push esi
push eax
mov dword [ebp - 0x364], 0x44
call sub.MSVCR80.dll_memset
xor eax, eax
mov dword [ebp - 0x320], esi
lea edi, [ebp - 0x31c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.30112117
add esp, 0x14
test eax, eax
jne 0x3011043c
xor eax, eax
jmp 0x301104b1
cmp dword [ebp + 0xc], esi
je 0x3011044b
mov dword [ebp - 0x338], 0x80
push ebx
lea eax, [ebp - 0x108]
push eax
push 0x30007088
lea eax, [ebp - 0x310]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfA]
add esp, 0x14
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x364]
push eax
push esi
push esi
push 0x4000020
push 1
push esi
push esi
lea eax, [ebp - 0x310]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x30110438
push dword [ebp - 0x31c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x320]
call esi
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.30136bd1
leave
ret 8
Function at 0x301104c2
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
or ebx, 0xffffffff
cmp eax, ebx
jne 0x301104d7
xor eax, eax
jmp 0x3011051a
push edi
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
mov dword [esi + 0xc], eax
je 0x3011050d
cmp eax, edi
je 0x3011050d
push edi
push eax
push edi
push 8
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi + 4], eax
push edi
jne 0x3011051e
push 0x71737369
call fcn.3010aa60
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], ebx
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
push edi
push edi
push 1
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
jne 0x30110552
push edi
push 0x7173736a
call fcn.3010aa60
push dword [esi + 4]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
push dword [esi]
mov dword [esi + 4], edi
call ebx
or dword [esi], 0xffffffff
jmp 0x30110517
xor eax, eax
inc eax
jmp 0x30110519

Function at 0x30110727
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 0xc], 0
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push ebx
push esi
call fcn.3012b119
mov edi, eax
test edi, edi
je 0x3011082d
cmp edi, esi
ja 0x3011082d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x300070a4
sub esi, edi
lea eax, [ebx + edi*2]
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0x10
test eax, eax
jle 0x3011082d
xor esi, esi
push esi
push esi
push 0x80
push 2
push esi
push 1
push 0xc0000000
push ebx
call fcn.3012b1b5
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x3011082d
mov eax, dword [ebp + 0x14]
cmp eax, esi
jbe 0x30110815
mov esi, dword [ebp + 0x10]
add esi, 8
mov dword [ebp - 0x10], eax
mov edi, dword [esi - 8]
push edi
call fcn.301238f5
push eax
push edi
push dword [ebp - 8]
call fcn.30110635
add esp, 0xc
test eax, eax
je 0x3011080d
and dword [ebp - 4], 0
cmp dword [esi], 0
jle 0x3011080d
mov eax, dword [esi - 4]
mov ecx, dword [ebp - 4]
lea eax, [eax + ecx*8]
mov edi, dword [eax + 4]
mov ebx, dword [eax]
push edi
call fcn.301238f5
push eax
push edi
push ebx
call fcn.301238f5
push eax
push ebx
push dword [ebp - 8]
call fcn.30110687
add esp, 0x14
test al, al
je 0x30110803
mov dword [ebp - 0xc], 1
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [esi]
jl 0x301107cf
add esi, 0xc
dec dword [ebp - 0x10]
jne 0x301107ac
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xc], 0
jne 0x3011082d
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret