joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4393ac
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push edi
mov eax, dword [0x4e251c]
mov dword [ebp - 0x108], eax
mov ecx, dword [0x4e2520]
mov dword [ebp - 0x104], ecx
mov dx, word [0x4e2524]
mov word [ebp - 0x100], dx
mov ecx, 0x3e
xor eax, eax
lea edi, [ebp - 0xfe]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x10c], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x439449
lea ecx, [ebp - 0x114]
push ecx
push 4
lea edx, [ebp - 0x110]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x439449
push 0x104
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp - 0x110]
push edx
mov eax, dword [ebp - 4]
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x108]
push edx
call fcn.00439f50
add esp, 0xc
test eax, eax
jne 0x439481
mov eax, dword [ebp + 8]
push eax
call fcn.004391b0
test eax, eax
je 0x439481
mov ecx, dword [ebp - 0x10c]
add ecx, 1
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10c]
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x439496
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
push edi
mov eax, dword [str._unknown_]
mov dword [ebp - 0x110], eax
mov ecx, dword [0x4e252c]
mov dword [ebp - 0x10c], ecx
mov dx, word [0x4e2530]
mov word [ebp - 0x108], dx
mov ecx, 0x3e
xor eax, eax
lea edi, [ebp - 0x106]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x114], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x439533
lea ecx, [ebp - 0x11c]
push ecx
push 4
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x439533
push 0x104
lea ecx, [ebp - 0x110]
push ecx
mov edx, dword [ebp - 0x118]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_GetModuleBaseNameA
lea ecx, [ebp - 0x110]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
push edx
call sub.ntdll.dll_strlen
add esp, 4
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 0xc]
jbe 0x43959a
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 4]
lea ecx, [ebp + eax - 0x110]
sub ecx, dword [ebp - 0xc]
push ecx
call fcn.00439f50
add esp, 0xc
test eax, eax
jne 0x43959a
mov edx, dword [ebp + 8]
push edx
call fcn.004391b0
test eax, eax
je 0x43959a
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x114]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4395af
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call sub.ntdll.dll__chkstk
mov dword [ebp - 0x100c], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x4395e6
xor eax, eax
jmp 0x43965e
mov edx, dword [ebp - 0x1004]
shr edx, 2
mov dword [ebp - 0x1010], edx
mov dword [ebp - 0x1008], 0
jmp 0x439610
mov eax, dword [ebp - 0x1008]
add eax, 1
mov dword [ebp - 0x1008], eax
mov ecx, dword [ebp - 0x1008]
cmp ecx, dword [ebp - 0x1010]
jae 0x439658
mov edx, dword [ebp - 0x1008]
cmp dword [ebp + edx*4 - 0x1000], 0
je 0x439656
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ebp + ecx*4 - 0x1000]
push edx
call fcn.004393ac
add esp, 8
mov ecx, dword [ebp - 0x100c]
add ecx, eax
mov dword [ebp - 0x100c], ecx
jmp 0x439601
mov eax, dword [ebp - 0x100c]
mov esp, ebp
pop ebp
ret

Function at 0x439662
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call sub.ntdll.dll__chkstk
mov dword [ebp - 0x100c], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x439699
xor eax, eax
jmp 0x439711
mov edx, dword [ebp - 0x1004]
shr edx, 2
mov dword [ebp - 0x1010], edx
mov dword [ebp - 0x1008], 0
jmp 0x4396c3
mov eax, dword [ebp - 0x1008]
add eax, 1
mov dword [ebp - 0x1008], eax
mov ecx, dword [ebp - 0x1008]
cmp ecx, dword [ebp - 0x1010]
jae 0x43970b
mov edx, dword [ebp - 0x1008]
cmp dword [ebp + edx*4 - 0x1000], 0
je 0x439709
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x1008]
mov edx, dword [ebp + ecx*4 - 0x1000]
push edx
call fcn.00439496
add esp, 8
mov ecx, dword [ebp - 0x100c]
add ecx, eax
mov dword [ebp - 0x100c], ecx
jmp 0x4396b4
mov eax, dword [ebp - 0x100c]
mov esp, ebp
pop ebp
ret
Function at 0x439715
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1330
call sub.ntdll.dll__chkstk
push edi
mov dword [ebp - 0x1014], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x439752
mov eax, dword [ebp - 0x1014]
jmp 0x439938
lea ecx, [ebp - 4]
push ecx
push 0x1000
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x439922
mov dword [ebp - 0xc], 0
jmp 0x439785
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
shr edx, 2
cmp dword [ebp - 0xc], edx
jae 0x439922
push 0x104
lea eax, [ebp - 0x1118]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x1010]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x43991d
mov byte [ebp - 0x1328], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1327]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x1224], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1223]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x1118]
push ecx
push 0x104
lea edx, [ebp - 0x1328]
push edx
call fcn.00415330
mov dword [ebp - 0x1330], 0x5c
mov eax, dword [ebp - 0x1330]
push eax
lea ecx, [ebp - 0x1328]
push ecx
call dword [sym.imp.ntdll.dll_strrchr]
add esp, 8
mov dword [ebp - 0x132c], eax
cmp dword [ebp - 0x132c], 0
je 0x439880
mov edx, dword [ebp - 0x132c]
lea eax, [ebp - 0x1328]
sub edx, eax
add edx, 1
mov dword [ebp - 0x111c], edx
lea ecx, [ebp - 0x1328]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
sub eax, dword [ebp - 0x111c]
push eax
mov edx, dword [ebp - 0x111c]
lea eax, [ebp + edx - 0x1328]
push eax
lea ecx, [ebp - 0x1224]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x1120], 1
mov dword [ebp - 0x10], 0
jmp 0x43989c
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x1120]
jae 0x4398e3
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x1224]
push ecx
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4398e1
mov edx, dword [ebp + 8]
push edx
call fcn.004391b0
test eax, eax
je 0x4398e1
mov eax, dword [ebp - 0x1014]
add eax, 1
mov dword [ebp - 0x1014], eax
jmp 0x439893
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx*4]
push eax
lea ecx, [ebp - 0x1224]
push ecx
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x43991d
mov edx, dword [ebp + 8]
push edx
call fcn.004391b0
test eax, eax
je 0x43991d
mov eax, dword [ebp - 0x1014]
add eax, 1
mov dword [ebp - 0x1014], eax
jmp 0x43977c
cmp dword [ebp - 8], 0
je 0x439932
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1014]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x43993d
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1328
call sub.ntdll.dll__chkstk
push edi
mov dword [ebp - 0x1010], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x43997a
mov eax, dword [ebp - 0x1010]
jmp 0x439af7
lea ecx, [ebp - 4]
push ecx
push 0x1000
lea edx, [ebp - 0x100c]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x439ae1
mov dword [ebp - 0xc], 0
jmp 0x4399ad
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 4]
shr edx, 2
cmp dword [ebp - 0xc], edx
jae 0x439ae1
push 0x104
lea eax, [ebp - 0x1114]
push eax
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + ecx*4 - 0x100c]
push edx
mov eax, dword [ebp - 8]
push eax
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x439adc
mov byte [ebp - 0x1320], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x131f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov byte [ebp - 0x121c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x121b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea ecx, [ebp - 0x1114]
push ecx
push 0x104
lea edx, [ebp - 0x1320]
push edx
call fcn.00415330
mov dword [ebp - 0x1328], 0x5c
mov eax, dword [ebp - 0x1328]
push eax
lea ecx, [ebp - 0x1320]
push ecx
call dword [sym.imp.ntdll.dll_strrchr]
add esp, 8
mov dword [ebp - 0x1324], eax
cmp dword [ebp - 0x1324], 0
je 0x439aa8
mov edx, dword [ebp - 0x1324]
lea eax, [ebp - 0x1320]
sub edx, eax
add edx, 1
mov dword [ebp - 0x1118], edx
lea ecx, [ebp - 0x1320]
push ecx
call sub.ntdll.dll_strlen
add esp, 4
sub eax, dword [ebp - 0x1118]
push eax
mov edx, dword [ebp - 0x1118]
lea eax, [ebp + edx - 0x1320]
push eax
lea ecx, [ebp - 0x121c]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x121c]
push eax
call dword [sym.imp.ntdll.dll__stricmp]
add esp, 8
test eax, eax
jne 0x439adc
mov ecx, dword [ebp + 8]
push ecx
call fcn.004391b0
test eax, eax
je 0x439adc
mov edx, dword [ebp - 0x1010]
add edx, 1
mov dword [ebp - 0x1010], edx
jmp 0x4399a4
cmp dword [ebp - 8], 0
je 0x439af1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1010]
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x439afc
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call sub.ntdll.dll__chkstk
mov dword [ebp - 0x100c], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x439b37
mov eax, dword [ebp - 0x100c]
jmp 0x439b9f
mov edx, dword [ebp - 0x1004]
shr edx, 2
mov dword [ebp - 0x1010], edx
mov dword [ebp - 0x1008], 0
jmp 0x439b61
mov eax, dword [ebp - 0x1008]
add eax, 1
mov dword [ebp - 0x1008], eax
mov ecx, dword [ebp - 0x1008]
cmp ecx, dword [ebp - 0x1010]
jae 0x439b99
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp + eax*4 - 0x1000]
push ecx
call fcn.00439715
add esp, 8
mov edx, dword [ebp - 0x100c]
add edx, eax
mov dword [ebp - 0x100c], edx
jmp 0x439b52
mov eax, dword [ebp - 0x100c]
mov esp, ebp
pop ebp
ret

Function at 0x439ba3
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call sub.ntdll.dll__chkstk
mov dword [ebp - 0x100c], 0
lea eax, [ebp - 0x1004]
push eax
push 0x1000
lea ecx, [ebp - 0x1000]
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x439bde
mov eax, dword [ebp - 0x100c]
jmp 0x439c46
mov edx, dword [ebp - 0x1004]
shr edx, 2
mov dword [ebp - 0x1010], edx
mov dword [ebp - 0x1008], 0
jmp 0x439c08
mov eax, dword [ebp - 0x1008]
add eax, 1
mov dword [ebp - 0x1008], eax
mov ecx, dword [ebp - 0x1008]
cmp ecx, dword [ebp - 0x1010]
jae 0x439c40
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x1008]
mov ecx, dword [ebp + eax*4 - 0x1000]
push ecx
call fcn.0043993d
add esp, 8
mov edx, dword [ebp - 0x100c]
add edx, eax
mov dword [ebp - 0x100c], edx
jmp 0x439bf9
mov eax, dword [ebp - 0x100c]
mov esp, ebp
pop ebp
ret
Function at 0x43dd67
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 2
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
cmp edx, dword [ebp + 0xc]
jae 0x43df51
mov eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [ebp - 0xc], cl
cmp byte [ebp - 0xc], 6
je 0x43df1c
cmp byte [ebp - 0xc], 0xe
je 0x43dda1
jmp 0x43df2b
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax]
and ecx, 0xff
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx + 1]
xor eax, 0x80
sub eax, 0x80
shl eax, 8
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
test edx, edx
jne 0x43ddaa
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
xor ecx, ecx
test ecx, ecx
jne 0x43ddaa
cmp dword [ebp - 4], 0
jl 0x43df1a
mov edx, dword [ebp - 8]
add edx, dword [ebp - 4]
xor eax, eax
mov al, byte [edx - 3]
cmp eax, 0xd
jne 0x43deb9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
lea ecx, [eax + edx - 3]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0043df57
add esp, 0xc
and eax, 0xff
test eax, eax
jne 0x43de35
xor al, al
jmp 0x43df53
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx]
cmp edx, 0xe
je 0x43de4c
jmp 0x43deb9
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx]
and edx, 0xff
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax + 1]
xor ecx, 0x80
sub ecx, 0x80
shl ecx, 8
mov edx, dword [ebp - 4]
add edx, ecx
mov dword [ebp - 4], edx
xor eax, eax
test eax, eax
jne 0x43de55
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
xor edx, edx
test edx, edx
jne 0x43de55
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
cmp ecx, 0xd
je 0x43deb4
mov edx, dword [ebp - 8]
sub edx, 3
mov dword [ebp - 8], edx
jmp 0x43deb9
jmp 0x43ddf6
mov eax, dword [ebp - 8]
xor ecx, ecx
mov cl, byte [eax - 2]
and ecx, 0xff
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx - 1]
xor eax, 0x80
sub eax, 0x80
shl eax, 8
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
test edx, edx
jne 0x43deb9
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0043df57
add esp, 0xc
and eax, 0xff
test eax, eax
jne 0x43df11
xor al, al
jmp 0x43df53
mov eax, dword [ebp - 8]
add eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x43df4c
mov ecx, dword [ebp - 8]
add ecx, 2
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov al, 1
jmp 0x43df53
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 8]
push edx
call fcn.0043e002
add esp, 0xc
and eax, 0xff
test eax, eax
jne 0x43df4c
xor al, al
jmp 0x43df53
jmp 0x43dd78
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x43df57
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0xc]
jae 0x43dffc
mov edx, dword [ebp - 8]
mov al, byte [edx]
mov byte [ebp - 0xc], al
cmp byte [ebp - 0xc], 0xe
je 0x43df7f
jmp 0x43dfd6
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
xor eax, eax
mov al, byte [edx]
and eax, 0xff
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
xor edx, edx
mov dl, byte [ecx + 1]
xor edx, 0x80
sub edx, 0x80
shl edx, 8
mov eax, dword [ebp - 4]
add eax, edx
mov dword [ebp - 4], eax
xor ecx, ecx
test ecx, ecx
jne 0x43df88
mov edx, dword [ebp - 8]
add edx, 2
mov dword [ebp - 8], edx
xor eax, eax
test eax, eax
jne 0x43df88
mov ecx, dword [ebp - 8]
add ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
jmp 0x43dff7
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 8]
push ecx
call fcn.0043e002
add esp, 0xc
and eax, 0xff
test eax, eax
jne 0x43dff7
xor al, al
jmp 0x43dffe
jmp 0x43df63
mov al, 1
mov esp, ebp
pop ebp
ret
Function at 0x442d8a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
push edi
mov dword [ebp - 0x124], ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
cmp dword [ebp + 0x18], 0
je 0x442de0
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jne 0x442de0
or eax, 0xffffffff
jmp 0x442f59
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.004431ff
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x442e0c
jmp 0x442f31
mov eax, dword [ebp + 0x1c]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 0x14]
push edx
push 0
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 0x124]
call fcn.00443226
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x124]
call fcn.00443318
cmp dword [ebp - 4], 0
jne 0x442f27
cmp dword [ebp - 8], 0
je 0x442f27
mov eax, dword [ebp + 0x14]
cmp dword [eax], 2
jne 0x442f11
push 0x50b514
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x442f11
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
push 0x50b518
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x442f11
mov byte [ebp - 0x118], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x117]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x14]
mov byte [ecx], 0
push 0x104
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x10]
sub edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
mov byte [eax], 0
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 8]
push eax
push 0x50b51c
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0x18]
push eax
call fcn.0040a150
add esp, 0x18
jmp 0x442f31
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
call sub.ntdll.dll_memcpy
add esp, 0xc
xor edx, edx
test edx, edx
jne 0x442de0
cmp dword [ebp - 8], 0
je 0x442f56
mov eax, dword [ebp - 8]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x120]
push ecx
call fcn.004a90a8
add esp, 4
mov dword [ebp - 8], 0
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x443553
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je case.default.0x443595
mov ecx, dword [ebp + 8]
push ecx
call fcn.00443743
add esp, 4
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 0x14]
sub eax, 1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 3
ja case.default.0x443595
mov ecx, dword [ebp - 0x14]
jmp dword [ecx*4 + 0x443723]
cmp dword [ebp - 0xc], 0x5188
jne 0x4435af
mov eax, 1
jmp 0x44371d
jmp case.default.0x443595
cmp dword [ebp - 0xc], 0x11608
jne 0x4435c4
mov eax, 1
jmp 0x44371d
jmp case.default.0x443595
cmp dword [ebp - 0xc], 0x3f08
jne 0x4435d9
mov eax, 1
jmp 0x44371d
jmp case.default.0x443595
cmp dword [ebp - 0xc], 0xe608
jne case.default.0x443595
mov eax, 1
jmp 0x44371d
mov dword [ebp - 8], 0xffffffff
mov dword [ebp - 4], 0
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x443628
xor eax, eax
jmp 0x44371d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 3
ja case.default.0x443644
mov edx, dword [ebp - 0x18]
jmp dword [edx*4 + 0x443733]
push 0
lea eax, [ebp - 4]
push eax
push 0x5188
push 0x4e2870
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x44367a
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44371d
jmp case.default.0x443644
push 0
lea eax, [ebp - 4]
push eax
push 0x11608
push 0x4e79f8
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4436ab
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44371d
jmp case.default.0x443644
push 0
lea eax, [ebp - 4]
push eax
push 0x3f08
push 0x507608
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4436d9
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44371d
jmp case.default.0x443644
push 0
lea eax, [ebp - 4]
push eax
push 0xe608
push 0x4f9000
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne case.default.0x443644
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x44371d
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], 0xffffffff
mov eax, 1
mov esp, ebp
pop ebp
ret 8
Function at 0x443a1e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push edi
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 4], 0
mov byte [ebp - 0x108], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [ebp + 8]
push eax
push str.___s
push 0x104
lea ecx, [ebp - 0x108]
push ecx
call fcn.0040a150
add esp, 0x10
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0x50b548
lea edx, [ebp - 0x108]
push edx
call fcn.00429739
add esp, 0x14
test eax, eax
jne 0x443a94
mov eax, dword [ebp - 4]
jmp 0x443af9
call fcn.004293d0
test eax, eax
je 0x443ab0
push 0x50b550
call fcn.004293f8
add esp, 4
test eax, eax
jne 0x443ab0
jmp 0x443af6
push 0x50b558
call fcn.00429942
add esp, 4
test eax, eax
jne 0x443adf
call fcn.004298bd
test eax, eax
jne 0x443acc
jmp 0x443af6
push 0x50b560
call fcn.00429942
add esp, 4
test eax, eax
jne 0x443adf
jmp 0x443af6
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov dword [ebp - 4], 1
xor ecx, ecx
test ecx, ecx
jne 0x443a94
mov eax, dword [ebp - 4]
pop edi
mov esp, ebp
pop ebp
ret 0x10