joyce8/EMBER2024-capa huggingface dataset:
Function at 0x150710c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.01506fa7
mov ebx, eax
test ebx, ebx
je 0x150714f
push esi
call fcn.01510db8
pop ecx
inc eax
push eax
push esi
push 1
push 0
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 0xc], eax
mov eax, ebx
call fcn.01507069
mov eax, dword [ebp - 0xc]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x1507174
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 8]
call fcn.01506fa7
mov ebx, eax
test ebx, ebx
je 0x15071a9
push dword [ebp + 8]
push dword [ebp + 0xc]
push 3
push 0
push dword [ebp - 4]
push ebx
call sub.ADVAPI32.DLL_RegSetValueExA
mov dword [ebp - 8], eax
mov eax, ebx
call fcn.01507069
mov eax, dword [ebp - 8]
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x15071d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov edi, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
call fcn.01507018
mov ebx, eax
mov esi, 1
test ebx, ebx
je 0x1507212
lea eax, [ebp + 8]
lea edx, [ebp - 0xc]
push eax
push edi
push edx
push 0
push dword [ebp - 8]
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExA
mov esi, eax
mov eax, ebx
call fcn.01507069
test esi, esi
jne 0x150721c
cmp dword [ebp + 8], 0
jne 0x150722c
push dword [ebp + 0xc]
push edi
call fcn.01510d88
add esp, 8
xor eax, eax
jmp 0x150722e
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x1507254
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff54
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 0x10]
call fcn.01502a14
test eax, eax
je 0x15072d2
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.01507018
mov ebx, eax
lea edx, [ebp - 0xac]
mov ecx, 0x1000000
mov eax, dword [ebp - 8]
call fcn.01502528
mov esi, 1
test ebx, ebx
je 0x15072bd
lea eax, [ebp + 8]
lea edx, [ebp - 0xc]
push eax
push edi
push edx
lea ecx, [ebp - 0xac]
push 0
push ecx
push ebx
call sub.ADVAPI32.DLL_RegQueryValueExW
mov esi, eax
mov eax, ebx
call fcn.01507069
test esi, esi
jne 0x15072c7
cmp dword [ebp + 8], 0
ja 0x15072cb
xor ebx, ebx
jmp 0x150730a
mov ebx, 1
jmp 0x150730a
mov eax, dword [ebp + 8]
inc eax
push eax
call fcn.0150f8b0
pop ecx
mov esi, eax
push esi
push 0x151ad14
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.015071d0
mov ebx, eax
mov ecx, dword [ebp + 8]
mov edx, edi
mov eax, esi
call fcn.01502528
push esi
call fcn.0150f6ec
pop ecx
test bl, bl
jne 0x1507318
mov edx, dword [ebp + 0xc]
mov eax, edi
call fcn.01502790
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1507db4
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov ebx, eax
push edi
mov dword [ebp - 4], edx
xor edx, edx
mov eax, dword [ebp + 0xc]
mov dword [ebx + 0xc18], edx
cmp byte [ebx + 0x16], 0
mov esi, ecx
je 0x1507dd7
mov al, 1
cmp byte [ebp + 8], 0
mov edi, 0x80000000
je 0x1507de8
or edi, 0x40000000
mov dword [ebp - 8], 1
test al, al
je 0x1507df7
or dword [ebp - 8], 2
xor eax, eax
cmp byte [ebx + 0x15], 0
jne 0x1507e04
add eax, 0x8000000
mov dword [ebp - 0xc], eax
call fcn.01502a14
test eax, eax
je 0x1507e31
test esi, esi
je 0x1507e31
cmp word [esi], 0
je 0x1507e31
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push esi
call sub.KERNEL32.DLL_CreateFileW
mov edi, eax
jmp 0x1507e48
push 0
push dword [ebp - 0xc]
push 3
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 4]
call sub.KERNEL32.DLL_CreateFileA
mov edi, eax
cmp edi, 0xffffffff
jne 0x1507e61
call sub.KERNEL32.DLL_GetLastError
cmp eax, 2
jne 0x1507e61
mov dword [ebx + 0xc18], 1
xor edx, edx
cmp edi, 0xffffffff
mov byte [ebx + 0x12], 0
setne cl
mov dword [ebx + 0xc], edx
and ecx, 1
mov byte [ebx + 0x10], 0
mov byte [ebp - 0xd], cl
cmp byte [ebp - 0xd], 0
je 0x1507ecf
mov dword [ebx + 4], edi
test esi, esi
je 0x1507e96
lea eax, [ebx + 0x418]
mov edx, esi
call fcn.01502790
jmp 0x1507e9f
mov word [ebx + 0x418], 0
cmp dword [ebp - 4], 0
je 0x1507eb6
push dword [ebp - 4]
lea ecx, [ebx + 0x17]
push ecx
call fcn.01510d88
add esp, 8
jmp 0x1507ec5
lea edx, [ebx + 0x17]
mov ecx, 0x1000000
mov eax, esi
call fcn.01502504
mov edx, dword [ebx + 4]
mov eax, ebx
call fcn.01507f04
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x15080d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push esi
push edi
mov edi, edx
cmp dword [ebx + 0xc], 1
mov esi, ecx
jne 0x15080fa
cmp esi, 0x4e20
jle 0x15080f0
mov esi, 0x4e20
push 0xfffffffffffffff6
call sub.KERNEL32.DLL_GetStdHandle
mov dword [ebx + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push esi
push edi
push dword [ebx + 4]
call sub.KERNEL32.DLL_ReadFile
test eax, eax
jne 0x150814a
mov eax, ebx
call fcn.01508340
test al, al
je 0x1508131
cmp esi, 0x4e20
jle 0x1508131
mov ecx, 0x4e20
mov edx, edi
mov eax, ebx
call fcn.015080d0
jmp 0x150814d
cmp dword [ebx + 0xc], 1
jne 0x1508145
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x6d
jne 0x1508145
xor eax, eax
jmp 0x150814d
or eax, 0xffffffff
jmp 0x150814d
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x150a020
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.01502a14
test eax, eax
je 0x150a04b
test ebx, ebx
je 0x150a04b
cmp word [ebx], 0
je 0x150a04b
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
setne al
and eax, 1
pop esi
pop ebx
ret
Function at 0x150a074
Capabilities:
Get file attributes

Disassembly:
push ebx
push esi
mov ebx, edx
mov esi, eax
call fcn.01502a14
test eax, eax
je 0x150a096
test ebx, ebx
je 0x150a096
cmp word [ebx], 0
je 0x150a096
push ebx
call sub.KERNEL32.DLL_GetFileAttributesW
pop esi
pop ebx
ret
push esi
call sub.KERNEL32.DLL_GetFileAttributesA
pop esi
pop ebx
ret

Function at 0x150a768
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, 0x15203c0
mov dword [ebp - 4], edx
mov esi, ecx
cmp dword [edi + 4], 0
mov ebx, eax
jne 0x150a788
call fcn.0150a730
mov eax, dword [ebp - 4]
jmp 0x150a7a1
mov edx, ebx
xor ecx, ecx
xor dl, byte [eax]
dec esi
mov cl, dl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
inc eax
mov ebx, edx
test esi, esi
jbe 0x150a7a9
test al, 7
jne 0x150a78d
cmp esi, 8
jb 0x150a832
xor ebx, dword [eax]
xor ecx, ecx
mov cl, bl
sub esi, 8
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
xor ebx, dword [eax + 4]
add eax, 8
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
xor ecx, ecx
mov ebx, edx
mov cl, bl
shr ebx, 8
mov edx, dword [edi + ecx*4]
xor edx, ebx
cmp esi, 8
mov ebx, edx
jae 0x150a7b2
xor ecx, ecx
mov dword [ebp - 8], ecx
cmp esi, dword [ebp - 8]
jbe 0x150a85c
mov ecx, dword [ebp - 8]
mov edx, ebx
shr ebx, 8
xor dl, byte [eax + ecx]
and edx, 0xff
mov ecx, dword [edi + edx*4]
xor ecx, ebx
mov ebx, ecx
inc dword [ebp - 8]
cmp esi, dword [ebp - 8]
ja 0x150a83c
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x150b822
Capabilities:
Create process on windows
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff3c4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov byte [ebp - 0x400], 0
lea eax, [ebp - 0x400]
mov edx, 0x400
call fcn.01507b14
cmp byte [ebp - 0x400], 0
je 0x150b882
lea ecx, [ebp - 0x400]
push ecx
call fcn.01510db8
pop ecx
movzx eax, byte [ebp + eax - 0x401]
cmp eax, 0x5c
je 0x150b882
push 0x151b3ca
lea edx, [ebp - 0x400]
push edx
call fcn.01510cac
add esp, 8
push str.rarcxtXXXXXX
lea ecx, [ebp - 0x400]
push ecx
call fcn.01510cac
add esp, 8
lea eax, [ebp - 0x400]
push eax
call fcn.015123cc
pop ecx
test eax, eax
je 0x150b9a2
lea edx, [ebp - 0x400]
lea ecx, [ebp - 0xc00]
push edx
push ebx
push str.cw__y___s____s_
push 0x800
push ecx
call fcn.015135cc
add esp, 0x14
lea eax, [ebp - 0xc3c]
push 0x3c
push 0
push eax
call fcn.01510c08
add esp, 0xc
mov dword [ebp - 0xc3c], 0x3c
mov dword [ebp - 0xc38], 0x40
xor eax, eax
call fcn.0150ea80
mov dword [ebp - 0xc2c], eax
lea edx, [ebp - 0xc00]
mov dword [ebp - 0xc28], edx
lea ecx, [ebp - 0xc3c]
mov dword [ebp - 0xc20], 1
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
je 0x150b9a2
push 0xffffffffffffffff
push dword [ebp - 0xc04]
call sub.KERNEL32.DLL_WaitForSingleObject
push dword [ebp - 0xc04]
call sub.KERNEL32.DLL_CloseHandle
push 0x151b3c7
lea eax, [ebp - 0x400]
push eax
call fcn.0151288c
add esp, 8
mov ebx, eax
test ebx, ebx
je 0x150b9a2
push 0x8000
call fcn.0150f8b0
pop ecx
mov dword [esi], eax
cmp dword [esi], 0
jne 0x150b973
push ebx
call fcn.01512524
pop ecx
jmp 0x150b9a2
push ebx
push 0x7fff
push 1
push dword [esi]
call fcn.01512b04
add esp, 0x10
mov dword [edi], eax
mov eax, dword [edi]
mov edx, dword [esi]
mov byte [edx + eax], 0
push ebx
call fcn.01512524
pop ecx
lea ecx, [ebp - 0x400]
push ecx
call sub.KERNEL32.DLL_DeleteFileA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x150c670
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
push 0x64
lea eax, [ebp - 0x64]
push eax
push 0xf
push 0x400
call sub.KERNEL32.DLL_GetLocaleInfoA
xor eax, eax
mov al, byte [ebp - 0x64]
mov esp, ebp
pop ebp
ret
Function at 0x150c7fc
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffff84
push ebx
push esi
push edi
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], edx
mov edi, eax
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov eax, 0x151b730
call fcn.01511028
push 0x3c
push 0
lea edx, [ebp - 0x7c]
push edx
call fcn.01510c08
mov dword [ebp - 0x7c], 0x3c
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x68], esi
mov ecx, dword [ebp - 0x38]
add esp, 0xc
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], 1
call fcn.01502a14
test eax, eax
je 0x150c885
cmp dword [0x151b344], 0
jne 0x150c885
push str.shell32.dll
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x150c885
push str.ShellExecuteExW
push dword [ebp - 0x3c]
call sub.KERNEL32.DLL_GetProcAddress
mov dword [0x151b344], eax
cmp dword [0x151b344], 0
je 0x150c95c
lea ecx, [ebp - 0x87c]
mov edx, dword [ebp - 0x34]
mov eax, edi
call fcn.015021d4
lea eax, [ebp - 0x87c]
mov dword [ebp - 0x6c], eax
lea ecx, [ebp - 0x107c]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x38]
call fcn.015021d4
lea edx, [ebp - 0x107c]
mov dword [ebp - 0x64], edx
mov word [ebp - 0x20], 8
mov word [ebp - 0x20], 0x14
lea eax, [ebp - 0xc]
call fcn.01501398
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x20
test ebx, ebx
je 0x150c900
cmp word [ebx], 0
je 0x150c900
mov eax, ebx
call fcn.0150277c
mov edx, eax
lea eax, [ebp - 0xc]
inc edx
call fcn.0150172c
jmp 0x150c912
push esi
call fcn.01510db8
pop ecx
mov edx, eax
inc edx
lea eax, [ebp - 0xc]
call fcn.0150172c
mov ecx, dword [ebp - 0xc]
mov edx, ebx
mov eax, esi
call fcn.015021d4
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x7c]
mov dword [ebp - 0x68], edx
push ecx
call dword [0x151b344]
mov dword [ebp - 0x40], eax
dec dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.01501504
mov word [ebp - 0x20], 8
mov word [ebp - 0x20], 0
jmp 0x150c968
lea ecx, [ebp - 0x7c]
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
setne al
and eax, 1
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x150cc80
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc4
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [0x15217f4]
mov eax, 0x15217c4
call fcn.01501874
mov edx, ebx
shl edx, 3
sub edx, ebx
add eax, edx
add eax, 0x400
push eax
call fcn.0150f8b0
pop ecx
mov ebx, eax
test ebx, ebx
je 0x150cd5e
push esi
lea ecx, [ebp - 0x400]
push ecx
call fcn.01510d88
add esp, 8
lea eax, [ebp - 0x400]
call fcn.01501d40
mov eax, esi
call fcn.0150c630
push 0
push 0xffffffffffffffff
mov dl, byte [ebp + 0xc]
mov ecx, esi
push edx
push 1
push 0
xor edx, edx
mov eax, ebx
call fcn.0150ecd4
push 0x3c
push 0
lea ecx, [ebp - 0x43c]
push ecx
call fcn.01510c08
add esp, 0xc
mov dword [ebp - 0x43c], 0x3c
xor eax, eax
call fcn.0150ea80
mov dword [ebp - 0x42c], eax
mov dword [ebp - 0x428], ebx
lea edx, [ebp - 0x400]
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x420], 1
push ecx
call sub.SHELL32.DLL_ShellExecuteExA
test eax, eax
je 0x150cd57
push dword [ebp - 0x404]
call sub.KERNEL32.DLL_CloseHandle
push ebx
call fcn.0150f6dc
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x150ea80
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc00
mov ecx, 0x151b3a8
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionApp_PathsWinRAR.exe
push ebx
push 0x1522f7c
mov ebx, eax
push str.winrar.exe
push 0x400
mov eax, 0x80000002
call fcn.015071d0
push 0x400
lea eax, [ebp - 0x400]
push eax
push 0x1522f7c
call sub.KERNEL32.DLL_ExpandEnvironmentStringsA
push 0x3ff
lea edx, [ebp - 0x400]
push edx
push 0x1522f7c
call fcn.01510f1c
add esp, 0xc
mov byte [0x152337b], 0
test bl, bl
je 0x150eb00
xor ecx, ecx
mov cl, byte [0x1522f7c]
cmp ecx, 0x22
je 0x150eb00
mov eax, 0x1522f7c
call fcn.0150c630
mov eax, 0x1522f7c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x15105e0
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x1511e8c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
call fcn.01512cec
test byte [ebp + 0xd], 0xc0
jne 0x1511eb0
mov eax, dword [0x151c4e0]
mov edx, dword [eax]
and edx, 0xc000
or dword [ebp + 0xc], edx
test byte [ebp + 0xd], 0x80
jne 0x1511ebd
or dword [ebp + 0xc], 0x4000
mov ecx, dword [ebp + 0xc]
and ecx, 0x700
cmp ecx, 0x500
jg 0x1511eea
je 0x1511efc
sub ecx, 0x100
je 0x1511f0a
sub ecx, 0x100
je 0x1511f11
sub ecx, 0x100
je 0x1511f03
jmp 0x1511f18
sub ecx, 0x600
je 0x1511f11
sub ecx, 0x100
je 0x1511efc
jmp 0x1511f18
mov edi, 1
jmp 0x1511f1d
mov edi, 2
jmp 0x1511f1d
mov edi, 4
jmp 0x1511f1d
mov edi, 5
jmp 0x1511f1d
mov edi, 3
test byte [ebp + 0xd], 1
je 0x1511f44
lea eax, [ebp + 0x10]
add eax, 4
mov eax, dword [eax - 4]
and eax, dword [0x151bf58]
test al, 0x80
je 0x1511f3d
mov ebx, 0x80
jmp 0x1511f56
mov ebx, 1
jmp 0x1511f56
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1511f56
xor ebx, ebx
mov eax, dword [ebp + 0xc]
and eax, 3
sub eax, 1
jb 0x1511f68
je 0x1511f71
dec eax
je 0x1511f7a
jmp 0x1511f83
mov dword [ebp - 4], 0x80000000
jmp 0x1511f92
mov dword [ebp - 4], 0x40000000
jmp 0x1511f92
mov dword [ebp - 4], 0xc0000000
jmp 0x1511f92
push 1
call fcn.015130c4
pop ecx
mov ebx, eax
jmp 0x151207e
mov eax, dword [ebp + 0xc]
and eax, 0x70
sub eax, 0x10
je 0x1511fae
sub eax, 0x10
je 0x1511fb5
sub eax, 0x10
je 0x1511fbe
sub eax, 0x10
je 0x1511fc7
jmp 0x1511fc7
xor edx, edx
mov dword [ebp - 8], edx
jmp 0x1511fce
mov dword [ebp - 8], 1
jmp 0x1511fce
mov dword [ebp - 8], 2
jmp 0x1511fce
mov dword [ebp - 8], 3
mov dword [ebp - 0x14], 0xc
xor ecx, ecx
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x14]
mov eax, dword [ebp + 0xc]
and eax, 0x80
cmp eax, 1
sbb edx, edx
neg edx
mov dword [ebp - 0xc], edx
push 0
push ebx
push edi
push ecx
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
push ecx
call sub.KERNEL32.DLL_CreateFileA
mov esi, eax
cmp eax, 0xffffffff
jne 0x1512037
call sub.KERNEL32.DLL_GetLastError
mov ebx, eax
and ebx, 0xffff
cmp ebx, 0x6e
jne 0x151202c
test byte [ebp + 0xd], 1
mov ebx, 0x50
jne 0x151202c
add ebx, 0xffffffb2
push ebx
call fcn.015130c4
pop ecx
mov ebx, eax
jmp 0x151207e
mov edi, esi
push edi
call fcn.01511df0
pop ecx
test eax, eax
je 0x151204b
or dword [ebp + 0xc], 0x2000
test bl, 1
jne 0x1512057
or dword [ebp + 0xc], 0x100
and dword [ebp + 0xc], 0xfffff8ff
mov eax, dword [ebp + 0xc]
push eax
push edi
call fcn.01512dec
add esp, 8
mov ebx, eax
inc eax
jne 0x151207e
push 4
call fcn.015130c4
pop ecx
push esi
call sub.KERNEL32.DLL_CloseHandle
call fcn.01512d20
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1516cac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x1516d0e
call fcn.01516c5c
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.01510db8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.01510db8
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret

Function at 0x1516d8c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x151d438], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x1516e66
cmp dword [0x151d434], 0
jne 0x1516e66
cmp dword [0x151d574], 0
je 0x1516e20
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.01516c04
add esp, 8
mov ebx, eax
test eax, eax
jne 0x1516e06
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.01516c04
add esp, 8
mov ebx, eax
test eax, eax
jne 0x1516e06
lea ebx, [ebp - 0x84]
jmp 0x1516e07
inc ebx
call fcn.01516d48
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x1516ea1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x151d43c
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.01510db8
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x151d43f
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x1516ea1
cmp dword [0x151d434], 0
je 0x1516e80
cmp dword [0x151d434], 0xffffffff
je 0x1516ea1
push esi
call dword [0x151d434]
pop ecx
mov eax, dword [0x151d438]
test eax, eax
je 0x1516ea1
cmp dword [0x151d438], 0xffffffff
je 0x1516ea1
cmp byte [eax], 0
je 0x1516ea1
push esi
push eax
call fcn.01516cac
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1517c74
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [ebp - 8], 1
mov dword [ebp - 4], esi
cmp edi, 1
jne 0x1517cfa
mov eax, dword [0x1523b24]
inc dword [0x1523b24]
test eax, eax
jne 0x1517cfa
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x1523af0], eax
mov edx, dword [ebp + 0x10]
mov dword [0x151a15b], edx
mov ecx, dword [esi + 0x44]
push ecx
call fcn.015126c8
pop ecx
cmp dword [0x151d4bc], 0
je 0x1517ce5
call fcn.01517af8
mov ebx, eax
test eax, eax
je 0x1517ce5
mov edx, dword [ebx]
cmp dword [ebx + edx*4 + 4], 0xffffffff
je 0x1517ce5
mov ecx, dword [ebx]
inc dword [ebx]
mov dword [ebx + ecx*4 + 4], esi
jmp 0x1517cfa
xor eax, eax
lea edx, [ebp - 8]
push 0
push edx
mov dword [0x151d4bc], eax
call fcn.01517b00
add esp, 8
mov ecx, dword [ebp + 0x18]
push ecx
push edi
mov eax, dword [ebp + 0x10]
push eax
mov edx, dword [esi + 0x18]
push edx
call fcn.01517e08
mov ebx, eax
test edi, edi
jne 0x1517d69
test edi, edi
jne 0x1517d3a
dec dword [0x1523b24]
jne 0x1517d3a
cmp dword [0x1523af0], 0
je 0x1517d3a
mov eax, dword [0x1523af0]
push eax
call sub.KERNEL32.DLL_FreeEnvironmentStringsA
xor edx, edx
mov dword [0x1523af0], edx
cmp dword [0x1523b24], 0
jne 0x1517d69
cmp dword [0x151d4bc], 0
jne 0x1517d69
cmp dword [0x151d4ac], 0
je 0x1517d5b
call dword [0x151d4ac]
push 1
lea ecx, [ebp - 8]
push ecx
call fcn.01517b00
add esp, 8
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x403050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x497020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4030e8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4030c8
xor eax, eax
push ebp
push 0x4030c1
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403104
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4030c8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x497020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x497020], ax
mov esp, ebp
pop ebp
ret

Function at 0x403da4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49b048], 0
je 0x403e05
cmp word [0x49b21c], 0xd7b2
jne 0x403dcd
cmp dword [0x49b224], 0
jbe 0x403dcd
mov eax, 0x49b218
call dword [0x49b234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x49706c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403e2c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x497030], 0
jne 0x403e21
push 0
push 0x497064
push 0x49706c
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x403f78
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402720
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x49b049], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x403f40
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc