joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ef0f
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
jne 0x100ef34
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x3c], eax
je 0x100ef82
cmp dword [esi + 0x40], edi
jne 0x100ef46
push edi
push edi
push edi
push edi
call ebx
cmp eax, edi
mov dword [esi + 0x40], eax
je 0x100ef82
cmp dword [esi + 0x44], edi
mov ecx, dword [ebp + 8]
lea eax, [esi + 0x24]
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x28], ecx
mov ecx, dword [esi + 0x3c]
mov dword [esi + 0x2c], ecx
mov ecx, dword [esi + 0x40]
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], edi
jne 0x100ef86
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x100eebc
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, edi
mov dword [esi + 0x44], eax
jne 0x100ef86
xor eax, eax
jmp 0x100ef9d
push dword [esi + 0x3c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esi + 0x38]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1010f6e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
mov esi, ecx
push 0x1001570
push 0x80000001
mov dword [esi], 0x10023a4
mov word [esi + 4], 0xf0
mov dword [esi + 8], 0x6a
mov dword [esi + 0xc], 2
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101101e
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push 4
pop ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [0x101e430]
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1010fe8
cmp dword [ebp - 8], ebx
jne 0x1010fe8
mov eax, dword [ebp - 0xc]
mov dword [esi + 8], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push dword [0x101e434]
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x1011013
cmp dword [ebp - 8], ebx
jne 0x1011013
mov eax, dword [ebp - 0xc]
mov dword [esi + 0xc], eax
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebx
mov eax, esi
pop esi
leave
ret

Function at 0x1011028
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push 0x100191c
push esi
push 0x1001570
mov edi, ecx
push 0x80000001
mov dword [edi], 0x10023a4
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1011098
push 4
lea eax, [edi + 8]
push eax
push 4
push esi
push dword [0x101e430]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call esi
push 4
add edi, 0xc
push edi
push 4
push 0
push dword [0x101e434]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret
Function at 0x1011349
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push 0x20006
push esi
push esi
push esi
push 0x1001570
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x101139a
push 0x64
push 0x101e438
push 3
push esi
push 0x1002104
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1011391
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret
Function at 0x1012428
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x10d8
call fcn.010145f0
mov eax, dword [0x101e4ac]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [sym.imp.USER32.dll_LoadStringW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10b4], eax
mov ebx, 0x104
push ebx
lea eax, [ebp - 0x648]
push eax
push 0x2713
push dword [0x101f9f0]
call edi
lea eax, [ebp - 0x10d8]
push eax
push 0xa68
lea eax, [ebp - 0x10b0]
push eax
push 1
push dword [esi]
push 0
call sub.WINSTA.dll_WinStationQueryInformationW
test al, al
je 0x1012661
cmp dword [ebp - 0xb50], 0
jne 0x10124ac
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbe
jmp 0x10124d4
cmp dword [esi + 0x84], 4
jne 0x101251a
cmp dword [ebp - 0xb50], 1
je 0x10124c7
cmp dword [ebp - 0xb50], 3
jne 0x101251a
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbf
push dword [0x101f9f0]
call edi
push dword [esi]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x230]
push 0x105
push eax
call fcn.01004bd8
add esp, 0x10
push 0x30
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x10b4]
call dword [sym.imp.USER32.dll_MessageBoxW]
jmp 0x1012661
lea ecx, [ebp - 0x10d4]
call fcn.01010f6e
push dword [ebp - 0x10b4]
lea ecx, [ebp - 0x10d4]
call fcn.0101154c
cmp eax, 1
jne 0x1012656
push 0
push 0x10122ef
push dword [ebp - 0x10b4]
push 0xd6
push dword [0x101f9f0]
call dword [sym.imp.USER32.dll_CreateDialogParamW]
test eax, eax
mov dword [ebp - 0x10b8], eax
je 0x101257c
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x10b8]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorW]
push eax
call dword [sym.imp.USER32.dll_SetCursor]
push 0x384
mov dword [ebp - 0x10c0], eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10c4]
push eax
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x10c4], 0xf
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
push dword [ebp - 0x10c8]
lea eax, [ebp - 0x24]
push dword [ebp - 0x10cc]
push dword [esi]
push eax
push 0
call sub.WINSTA.dll_WinStationShadow
cmp dword [ebp - 0x10b8], 0
movzx eax, al
mov dword [ebp - 0x10bc], eax
je 0x10125f3
push dword [ebp - 0x10b8]
call dword [sym.imp.USER32.dll_DestroyWindow]
cmp dword [ebp - 0x10bc], 0
jne 0x101264a
push ebx
lea eax, [ebp - 0x43c]
push eax
push 0x9cbd
push dword [0x101f9f0]
call edi
push dword [esi]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x230]
push 0x105
push eax
call fcn.01004bd8
add esp, 0x10
push 0x30
lea eax, [ebp - 0x648]
push eax
lea eax, [ebp - 0x230]
push eax
push dword [ebp - 0x10b4]
call dword [sym.imp.USER32.dll_MessageBoxW]
push dword [ebp - 0x10c0]
call dword [sym.imp.USER32.dll_SetCursor]
lea ecx, [ebp - 0x10d4]
call fcn.01011028
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01013809
leave
ret 8

Function at 0x1013809
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x101e4ac]
jne 0x101381a
test ecx, 0xffff0000
jne 0x101381a
ret
jmp fcn.01013824
Function at 0x1014808
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp ecx, dword [esi*8 + 0x101e4c0]
je 0x101482a
inc esi
cmp esi, 0x13
mov dword [ebp - 4], esi
jb 0x1014818
cmp esi, 0x13
je 0x1014966
mov eax, dword [0x10204e4]
cmp eax, 1
push ebx
je 0x1014935
test eax, eax
jne 0x1014853
cmp dword [0x101e4b4], 1
je 0x1014935
cmp ecx, 0xfc
je 0x1014965
push edi
push 6
pop ecx
mov esi, 0x10027c0
mov edi, 0x1020530
rep movsd dword es:[edi], dword [esi]
push 0x104
mov ebx, 0x102054a
push ebx
movsw word es:[edi], word [esi]
push 0
mov byte [0x102064e], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x10148a1
push 5
pop ecx
mov esi, 0x10027a8
mov edi, 0x102054a
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10148a6
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10148d9
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10148ba
sub eax, edx
push 3
lea eax, [eax + 0x102050f]
push 0x10027a4
push eax
call fcn.01016c10
add esp, 0xc
mov edx, 0x1020530
mov edi, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x10148e1
mov eax, dword [ebp - 4]
mov eax, dword [eax*8 + 0x101e4c4]
mov esi, 0x10027a0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10148fd
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1014909
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1002778
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01016b07
add esp, 0xc
pop edi
jmp 0x1014965
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1014965
mov edx, dword [esi*8 + 0x101e4c4]
mov ecx, edx
lea esi, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x101494d
push 0
sub ecx, esi
lea esi, [ebp - 8]
push esi
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebx
pop esi
leave
ret
Function at 0x1016b07
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x1020bc8], ebx
push esi
push edi
jne 0x1016b89
push 0x1002a48
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1016bc4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1002a3c
push edi
call esi
test eax, eax
mov dword [0x1020bc8], eax
je 0x1016bc4
push 0x1002a2c
push edi
call esi
push 0x1002a18
push edi
mov dword [0x1020bcc], eax
call esi
cmp dword [0x10204ec], 2
mov dword [0x1020bd0], eax
jne 0x1016b89
push 0x10029fc
push edi
call esi
test eax, eax
mov dword [0x1020bd8], eax
je 0x1016b89
push 0x10029e4
push edi
call esi
mov dword [0x1020bd4], eax
mov eax, dword [0x1020bd4]
test eax, eax
je 0x1016bce
call eax
test eax, eax
je 0x1016bb5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1020bd8]
test eax, eax
je 0x1016bb5
test byte [ebp - 8], 1
jne 0x1016bce
cmp dword [0x10204f8], 4
jb 0x1016bc8
or byte [ebp + 0x12], 0x20
jmp 0x1016bed
xor eax, eax
jmp 0x1016bfd
or byte [ebp + 0x12], 4
jmp 0x1016bed
mov eax, dword [0x1020bcc]
test eax, eax
je 0x1016bed
call eax
mov ebx, eax
test ebx, ebx
je 0x1016bed
mov eax, dword [0x1020bd0]
test eax, eax
je 0x1016bed
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x1020bc8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1017dae
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x1017ddf
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x1017de6
cmp ebx, dword [ebp + 8]
jae 0x1017de6
xor eax, eax
jmp 0x1017fd6
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1017df7
xor eax, eax
inc eax
jmp 0x1017fd5
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1017e0d
cmp ecx, edx
jae 0x1017f52
cmp dword [eax + 4], 0
je 0x1017e16
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1017dfe
cmp dword [ebp + 8], 0
je 0x1017e38
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1017f52
cmp eax, esi
jae 0x1017f52
mov eax, dword [0x1020be8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1017e5d
cmp dword [esi*4 + 0x1020bf0], edi
je 0x1017f56
inc esi
cmp esi, eax
jl 0x1017e4b
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1017fd2
cmp dword [ebp - 8], 0x1000000
jne 0x1017fd2
test byte [ebp - 0xc], 0xcc
je 0x1017edb
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x1017fd2
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x1017fd2
cmp word [eax + 0x18], 0x10b
jne 0x1017fd2
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x1017fd2
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x1017edb
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x1017edb
test byte [ecx + 0x27], 0x80
jne 0x1017f52
push 1
push 0x1020c30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1017def
mov ecx, dword [0x1020be8]
test ecx, ecx
mov edx, ecx
jle 0x1017f0f
lea eax, [ecx*4 + 0x1020bec]
cmp dword [eax], edi
je 0x1017f0f
dec edx
sub eax, 4
test edx, edx
jg 0x1017f03
test edx, edx
jne 0x1017f40
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1017f1c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1017f34
lea eax, [edx*4 + 0x1020bf0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1017f22
cmp ecx, 0x10
jge 0x1017f40
inc ecx
mov dword [0x1020be8], ecx
push 0
push 0x1020c30
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1017def
xor eax, eax
jmp 0x1017fd5
test esi, esi
jle 0x1017def
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1020c30
call ebx
test eax, eax
jne 0x1017def
cmp dword [esi*4 + 0x1020bf0], edi
je 0x1017fac
mov eax, dword [0x1020be8]
lea esi, [eax - 1]
test esi, esi
jl 0x1017f9a
cmp dword [esi*4 + 0x1020bf0], edi
je 0x1017f96
dec esi
jns 0x1017f8a
test esi, esi
jge 0x1017faa
cmp eax, 0x10
jge 0x1017fa5
inc eax
mov dword [0x1020be8], eax
lea esi, [eax - 1]
jmp 0x1017fac
je 0x1017fc4
xor ecx, ecx
test esi, esi
jl 0x1017fc4
lea eax, [ecx*4 + 0x1020bf0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1017fb2
push 0
push 0x1020c30
call ebx
jmp 0x1017def
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10188e1
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x101e4ac]
xor ecx, ecx
cmp dword [ebp + 0x10], ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x41c], ecx
jne 0x1018918
xor eax, eax
jmp 0x1018acb
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x1022100]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x101894d
push 2
push ecx
push ecx
push dword [ebp + 8]
call fcn.01019d46
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x1018a1b
cmp dword [ebp + 0x10], ecx
mov dword [ebp - 0x414], edi
mov dword [ebp - 0x40c], ecx
jbe 0x1018a99
jmp 0x1018974
xor ecx, ecx
mov dword [ebp - 0x410], ecx
mov ecx, dword [ebp - 0x414]
sub ecx, dword [ebp - 0x420]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x10189ca
mov edx, dword [ebp - 0x414]
inc dword [ebp - 0x414]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x10189b5
inc dword [ebp - 0x41c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x410]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x410]
cmp dword [ebp - 0x410], 0x400
jl 0x101898c
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x424]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1018a48
mov eax, dword [ebp - 0x424]
add dword [ebp - 0x418], eax
cmp eax, edi
jl 0x1018a54
mov eax, dword [ebp - 0x414]
sub eax, dword [ebp - 0x420]
cmp eax, dword [ebp + 0x10]
jb 0x1018972
jmp 0x1018a54
push ecx
lea ecx, [ebp - 0x424]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1018a48
mov eax, dword [ebp - 0x424]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x418], eax
jmp 0x1018a54
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x418]
test eax, eax
jne 0x1018ac3
cmp dword [ebp - 0x40c], eax
je 0x1018a93
push 5
pop esi
cmp dword [ebp - 0x40c], esi
jne 0x1018a85
call fcn.010157ba
mov dword [eax], 9
call fcn.010157d2
mov dword [eax], esi
jmp 0x1018abe
push dword [ebp - 0x40c]
call fcn.010157ea
pop ecx
jmp 0x1018abe
mov edi, dword [ebp - 0x420]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x1018aab
cmp byte [edi], 0x1a
jne 0x1018aab
xor eax, eax
jmp 0x1018ac9
call fcn.010157ba
mov dword [eax], 0x1c
call fcn.010157d2
and dword [eax], 0
or eax, 0xffffffff
jmp 0x1018ac9
sub eax, dword [ebp - 0x41c]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
call fcn.01013809
leave
ret
Function at 0x101976b
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
push 4
pop eax
call fcn.010145f0
mov dword [ebp - 8], esp
push 0x1c
lea eax, [ebp - 0x2c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1019867
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [ebp - 0x4c]
xor esi, esi
cmp dword [0x10204ec], 2
jne 0x10197ec
push 0x1002834
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp eax, esi
je 0x10197ec
push 0x1003504
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x10197ec
lea ecx, [ebp - 4]
push ecx
mov dword [ebp - 4], esi
call eax
cmp eax, 1
pop ecx
jne 0x10197ec
cmp dword [ebp - 4], esi
jbe 0x10197ec
mov esi, dword [ebp - 4]
mov edx, dword [0x10204ec]
mov ebx, edx
dec ebx
neg ebx
sbb ebx, ebx
and ebx, 0x103
lea ecx, [edi - 1]
lea eax, [esi + edi - 1]
not ecx
inc ebx
and eax, ecx
mov dword [ebp - 4], eax
je 0x1019815
add eax, edi
mov dword [ebp - 4], eax
lea ecx, [edi + edi]
cmp eax, ecx
jae 0x1019821
mov dword [ebp - 4], ecx
mov eax, ecx
lea esi, [edi - 1]
not esi
and esi, dword [ebp - 8]
sub esi, eax
cmp edx, 1
jne 0x1019833
push 0x11
pop edi
mov ecx, dword [ebp - 0xc]
add edi, ecx
cmp esi, edi
jb 0x1019867
push 4
push 0x1000
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x1019867
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1019867
xor eax, eax
inc eax
jmp 0x1019869
xor eax, eax
lea esp, [ebp - 0x5c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x101a6bf
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push 0x10035e0
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101a717
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x100361c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101a70a
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x101a719
xor eax, eax
pop esi
leave
ret 4
Function at 0x101aa79
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push edi
lea eax, [ebp + 0xc]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
test eax, eax
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
jne 0x101aada
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], 4
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101aad1
cmp dword [ebp - 0xc], 4
je 0x101aad1
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0xc]
push eax
push 1
push edi
push dword [ebp + 0x10]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x101ab1d
push 4
pop esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push dword [ebp + 0x14]
mov dword [ebp - 8], esi
push dword [ebp + 0xc]
call ebx
test eax, eax
jne 0x101ab14
cmp dword [ebp - 0xc], esi
je 0x101ab14
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x101ab2c
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x101e4ac]
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
lea edx, [ebp - 0x10c]
push edx
push 1
xor esi, esi
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101aba2
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x114]
push eax
push esi
push edi
push dword [ebp - 0x10c]
mov dword [ebp - 0x110], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x10c]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.01013809
leave
ret 0xc

Function at 0x101ad0e
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x10036e8
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x101ad60
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x10036cc
push dword [ebp - 4]
mov dword [ebp - 0xc], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret
Function at 0x101ad6a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x101f03c]
cmp eax, 0xffffffff
jne 0x101adee
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x100376c
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x101addd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0x1003760
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x101add4
cmp dword [ebp - 0xc], 4
jne 0x101add4
cmp dword [ebp - 0x10], eax
je 0x101add4
mov dword [0x101f03c], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x101f03c]
cmp eax, 0xffffffff
jne 0x101adee
xor eax, eax
mov dword [0x101f03c], eax
leave
ret
Function at 0x40b120
Capabilities:
Delete file
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x5917ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x40b1e1
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x40b1cb
push edi
push 0x104
lea edi, [ebx + 4]
push 0
push edi
call fcn.004c0d00
add esp, 0xc
lea eax, [ebp - 0x108]
push edi
push 0
push 0x54c920
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push str..bat
push edi
call dword [sym.imp.SHLWAPI.dll_PathRenameExtensionA]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 4
push 0
push 7
push 0xc01200a0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebx], eax
pop edi
cmp dword [ebx], 0
jne 0x40b1e1
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049b8b8
mov esp, ebp
pop ebp
ret
push 0x208
lea eax, [ebp - 0x310]
push 0
push eax
call fcn.004c0d00
add esp, 0xc
mov dword [ebp - 0x314], 0
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 0xc]
lea eax, [ebp - 0x310]
push 0x207
push eax
call fcn.0040b2b0
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004dbc41
or ecx, 0xffffffff
add esp, 0x1c
test eax, eax
cmovs eax, ecx
test eax, eax
js 0x40b241
cmp eax, 0x207
ja 0x40b241
jne 0x40b248
mov byte [ebp - 0x109], 0
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b251
push 0
lea eax, [ebp - 0x314]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x310]
push eax
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0049b8b8
mov esp, ebp
pop ebp
ret