joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101babd7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10371d88]
jne 0x101babe1
repz ret
jmp fcn.101c0419

Function at 0x101c0bff
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.101bac7a
and dword [ebp - 4], 0
cmp dword [0x10373df8], 0
mov ebx, eax
jne 0x101c0cb0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x101c0d61
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x101c0d61
push eax
call fcn.101bac08
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10373df8], eax
call esi
push eax
call fcn.101bac08
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10373dfc], eax
call esi
push eax
call fcn.101bac08
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10373e00], eax
call esi
push eax
call fcn.101bac08
pop ecx
mov dword [0x10373e08], eax
test eax, eax
je 0x101c0cb0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.101bac08
pop ecx
mov dword [0x10373e04], eax
mov eax, dword [0x10373e04]
cmp eax, ebx
je 0x101c0d08
cmp dword [0x10373e08], ebx
je 0x101c0d08
push eax
call fcn.101bac83
push dword [0x10373e08]
mov esi, eax
call fcn.101bac83
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x101c0d08
test edi, edi
je 0x101c0d08
call esi
test eax, eax
je 0x101c0cff
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x101c0cff
test byte [ebp - 0xc], 1
jne 0x101c0d08
or dword [ebp + 0x10], 0x200000
jmp 0x101c0d41
mov eax, dword [0x10373dfc]
cmp eax, ebx
je 0x101c0d41
push eax
call fcn.101bac83
pop ecx
test eax, eax
je 0x101c0d41
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x101c0d41
mov eax, dword [0x10373e00]
cmp eax, ebx
je 0x101c0d41
push eax
call fcn.101bac83
pop ecx
test eax, eax
je 0x101c0d41
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10373df8]
call fcn.101bac83
pop ecx
test eax, eax
je 0x101c0d61
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x101c0d63
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101cc280
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [0x10371814], 0
mov dword [0x10371818], 0
mov dword [0x10371824], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x24], 0
mov dword [0x1037180c], 0x145d
mov dword [ebp - 0x24], 0
jmp 0x101cc305
mov eax, dword [ebp - 0x24]
add eax, 1
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
jmp 0x101cc305
mov dword [0x10371810], 0x2692
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
cmp eax, ecx
jae 0x101cc2f3
mov eax, 0x100
mov ecx, dword [0x1037180c]
add ecx, 0x21fe
mov dword [0x1037180c], ecx
mov ecx, dword [0x10371814]
add ecx, 1
mov dword [ebp - 0x34], eax
mov eax, ecx
cdq
mov ecx, dword [ebp - 0x34]
idiv ecx
mov dword [0x10371814], edx
mov edx, dword [0x1037180c]
add edx, 0xf93
mov dword [0x10371810], edx
mov edx, dword [0x10371818]
mov esi, dword [0x10371814]
mov edi, dword [ebp - 0x1c]
movzx esi, byte [edi + esi]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x10371818], edx
mov edx, dword [0x10371814]
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + edx]
mov byte [0x1037181c], bl
mov edx, dword [0x10371818]
mov esi, dword [ebp - 0x1c]
mov bl, byte [esi + edx]
mov edx, dword [0x10371814]
mov esi, dword [ebp - 0x1c]
mov byte [esi + edx], bl
mov dword [0x10371810], 0x2b4
mov bl, byte [0x1037181c]
mov edx, dword [0x10371818]
mov esi, dword [ebp - 0x1c]
mov byte [esi + edx], bl
mov edx, dword [0x10371814]
mov esi, dword [ebp - 0x1c]
movzx edx, byte [esi + edx]
mov esi, dword [0x10371818]
mov edi, dword [ebp - 0x1c]
movzx esi, byte [edi + esi]
add edx, esi
mov dword [ebp - 0x20], edx
mov dword [0x10371810], 0xdf3
mov edx, dword [ebp - 0x20]
mov eax, edx
cdq
idiv ecx
mov dword [0x10371824], edx
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
mov esi, dword [0x10371824]
mov edi, dword [ebp - 0x1c]
movzx esi, byte [edi + esi]
xor edx, esi
mov bl, dl
mov edx, dword [ebp - 0x24]
mov esi, dword [ebp - 0x18]
mov byte [esi + edx], bl
jmp 0x101cc2e0
Function at 0x101cc430
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [0x1037180c], 0x1c6a
mov dword [ebp - 8], 0
mov dword [0x10371810], 0x2f2
mov eax, dword fs:[0x30]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [0x1037180c], 0xb29
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x10]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 0
jmp 0x101cc4e6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x16]
cmp eax, 0x61
jne 0x101cc568
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dx, word [eax + ecx*2 - 0x14]
mov word [ebp - 0x12], dx
mov ax, word [ebp - 0x12]
movzx ecx, ax
cmp ecx, 0x64
je 0x101cc52a
jmp 0x101cc568
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2]
cmp eax, 0
jne 0x101cc4f1
jmp 0x101cc500
mov dword [0x10371810], 0xa81
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x10]
cmp eax, 0x6c
je 0x101cc53e
jmp 0x101cc561
cmp dword [ebp - 0x10], 0x104
jl 0x101cc4b5
jmp 0x101cc500
jmp 0x101cc4f3
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
jmp 0x101cc4e6
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x1a]
cmp eax, 0x6c
jne 0x101cc56c
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x18]
cmp eax, 0x6f
je 0x101cc47c
jmp 0x101cc56a
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0x12]
cmp eax, 0x64
je 0x101cc4c8
jmp 0x101cc563
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
movzx eax, word [eax + ecx*2 - 0xe]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
cmp eax, 0x6c
jne 0x101cc55f
mov dword [ebp - 4], 1
jmp 0x101cc582
jmp 0x101cc561
jmp 0x101cc563
jmp 0x101cc4b0
jmp 0x101cc56a
jmp 0x101cc56c
mov eax, dword [0x10371810]
sub eax, 0x94b
mov dword [0x10371810], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x18
pop ebp
ret

Function at 0x101cd090
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [fcn.101cd090]
mov dword [0x1037180c], 0x2e
mov dword [ebp - 4], eax
jmp 0x101cd0b9
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop ebp
ret
mov eax, dword [ebp - 4]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x101cd0e7
mov eax, dword [ebp - 4]
sub eax, 0x1000
and eax, 0xfffff000
mov dword [ebp - 4], eax
mov eax, dword [0x10371810]
sub eax, 0x8d4
mov dword [0x1037180c], eax
jmp 0x101cd108
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
jne 0x101cd106
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
jmp 0x101cd0ab
jmp 0x101cd0c6
mov al, 1
test al, 1
jne 0x101cd0b9
jmp 0x101cd110
mov dword [ebp - 8], 0
jmp 0x101cd0ab
Function at 0x40236c
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
push 0xc35
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edi, eax
test edi, edi
je 0x4023d2
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.00432520
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x4023d2
add esi, 0x10
lea eax, [ebp - 0x804]
call fcn.00401338
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004322fb
leave
ret
Function at 0x402f7b
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
xor ebx, ebx
push 0x442dd8
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov byte [esi + 0x18], bl
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
cmp eax, ebx
mov dword [esi + 0x1c], eax
je 0x403017
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RegCreateKeyExW
push eax
call edi
push str.RegQueryValueW
push dword [esi + 0x1c]
mov dword [esi], eax
call edi
push str.RegSetValueW
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call edi
push str.RegQueryValueExW
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call edi
push str.RegSetValueExW
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call edi
push str.RegCloseKey
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call edi
cmp dword [esi], ebx
mov dword [esi + 0x14], eax
pop edi
je 0x403017
cmp dword [esi + 4], ebx
je 0x403017
cmp dword [esi + 8], ebx
je 0x403017
cmp dword [esi + 0xc], ebx
je 0x403017
cmp dword [esi + 0x10], ebx
je 0x403017
cmp eax, ebx
je 0x403017
mov byte [esi + 0x18], 1
mov eax, esi
pop ebx
ret

Function at 0x40413e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push 0x44
mov esi, eax
xor ebx, ebx
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.00432520
push 0x10
lea eax, [ebp - 0x14]
push ebx
push eax
mov dword [ebp - 0x5c], 0x44
call fcn.00432520
add esp, 0x18
cmp dword [esi + 0x18], 8
mov dword [ebp - 0x30], 1
mov word [ebp - 0x2c], 5
jb 0x404184
mov esi, dword [esi + 4]
jmp 0x404187
add esi, 4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x404195
mov eax, dword [eax + 4]
jmp 0x404198
add eax, 4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4041c4
cmp dword [ebp - 0x14], ebx
je 0x4041c0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x4041c6
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x40500c
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp dword [eax + 0x18], 8
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], edi
jb 0x405035
mov eax, dword [eax + 4]
jmp 0x405038
add eax, 4
lea ecx, [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, eax
cmp ebx, edi
jne 0x40504d
xor al, al
jmp 0x405095
cmp dword [ebp - 0x24], edi
jle 0x405081
mov eax, dword [ebx + edi*4]
lea ecx, [ebp - 0x20]
call fcn.0040118b
cmp dword [ebp - 0xc], 0
je 0x40506f
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x28]
call fcn.004011dd
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x405052
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x28]
call fcn.004011c7
test eax, eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004322fb
leave
ret 4
Function at 0x40764e
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b8
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x18], 8
jb 0x40766f
mov eax, dword [eax + 4]
jmp 0x407672
add eax, 4
push 0x100
push 0x2b4
lea ecx, [ebp - 0x2b8]
push ecx
push 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
test eax, eax
je 0x407699
mov eax, dword [ebp - 0x2b8]
mov dword [esi + 0x18], eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004322fb
leave
ret 4

Function at 0x409bf0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x29c
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
push 0x27f4
mov dword [ebp - 0x25c], edi
call fcn.004050f6
lea ecx, [ebp - 0x250]
call fcn.004100e0
cmp dword [ebp - 0x238], 8
mov eax, dword [ebp - 0x24c]
jae 0x409c38
lea eax, [ebp - 0x24c]
mov esi, dword [sym.imp.USER32.dll_SetWindowTextW]
push eax
push dword [edi + 4]
call esi
push 0x20a
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00432520
add esp, 0xc
push 0x3ec
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
test eax, eax
mov ebx, dword [sym.imp.USER32.dll_IsWindow]
mov dword [ebp - 0x258], eax
je 0x409cb3
push eax
call ebx
test eax, eax
je 0x409cb3
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x258]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x409cb3
and word [ebp - 0x10], 0
lea esi, [edi + 0x298]
lea eax, [ebp - 0x218]
call fcn.00401338
jmp 0x409cdc
push dword [ebp - 0x258]
call ebx
test eax, eax
je 0x409cdc
lea eax, [edi + 0x298]
cmp dword [eax + 0x18], 8
jb 0x409cd0
mov eax, dword [eax + 4]
jmp 0x409cd3
add eax, 4
push eax
push dword [ebp - 0x258]
call esi
add edi, 0x298
lea ecx, [ebp - 0x278]
call fcn.0040c150
push 0xffffffffffffffff
push edi
xor ebx, ebx
call fcn.004016e9
push ebx
push 1
lea esi, [ebp - 0x278]
call fcn.00401452
push 0x443184
push edi
call fcn.0040c919
mov ebx, dword [ebp - 0x25c]
cmp byte [ebx + 0x90], 0
pop ecx
pop ecx
je 0x409e0b
cmp dword [ebx + 0x88], 0
je 0x409e0b
lea ecx, [ebx + 0x74]
mov eax, edi
call fcn.0040c782
test al, al
jne 0x409e0b
lea esi, [ebp - 0x298]
call fcn.00402f7b
lea eax, [ebx + 0x324]
lea esi, [ebp - 0x234]
call fcn.00401aa6
call fcn.0040c9bc
push 0x25
push 0x3a
call fcn.0040c89e
push 0x25
push 0x5c
call fcn.0040c89e
mov ebx, str.SoftwareHaoZip_SFX
add esp, 0x10
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.0040302a
push 0
push 1
lea esi, [ebp - 0x278]
mov byte [ebp - 0x251], al
call fcn.00401452
cmp byte [ebp - 0x251], 0
je 0x409df1
mov eax, ebx
lea ecx, [ebp - 0x278]
call fcn.0040118b
lea eax, [ebp - 0x234]
push eax
mov ecx, edi
lea eax, [ebp - 0x278]
lea esi, [ebp - 0x298]
call fcn.00403160
push 0
push 1
lea esi, [ebp - 0x278]
call fcn.00401452
push 0
push 1
lea esi, [ebp - 0x234]
call fcn.00401452
lea eax, [ebp - 0x298]
call fcn.0040301b
push 0
push 1
lea esi, [ebp - 0x250]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004322fb
leave
ret
Function at 0x40c046
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp + 0x394], eax
push esi
push edi
xor edi, edi
push 0x40e
lea eax, [ebp - 0x7a]
push edi
push eax
mov esi, ecx
mov word [ebp - 0x7c], di
call fcn.00432520
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
push dword [ebp + 0x3a0]
mov dword [ebp - 0x80], edi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x40c099
xor al, al
jmp 0x40c0d2
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x40c0ba
cmp dword [ebp - 0x80], edi
je 0x40c095
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x40c095
lea eax, [ebp - 0x7c]
call fcn.00401338
cmp dword [ebp - 0x80], edi
je 0x40c0d0
push dword [ebp - 0x80]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov ecx, dword [ebp + 0x394]
pop edi
xor ecx, ebp
pop esi
call fcn.004322fb
add ebp, 0x398
leave
ret

Function at 0x40c0e9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push esi
push 0x38
xor esi, esi
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00432520
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], esi
call dword [sym.imp.USER32.dll_GetActiveWindow]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x3c]
push eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], str.regedit.exe
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], 1
mov dword [ebp - 4], esi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
pop esi
je 0x40c14c
push 0x20
pop eax
cmp eax, dword [ebp - 0x1c]
sbb eax, eax
neg eax
leave
ret
xor al, al
leave
ret
Function at 0x40c150
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 1
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], 0x25
call fcn.004013a6
cmp eax, 0xffffffff
mov eax, edi
jne 0x40c18f
call fcn.00401aa6
mov eax, esi
jmp 0x40c22b
lea esi, [ebp - 0x20]
call fcn.00401aa6
cmp dword [edi + 0x18], 8
lea eax, [edi + 4]
mov dword [ebp - 0x2c], eax
jb 0x40c1a5
mov eax, dword [eax]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
push 0
push 0
push eax
call ebx
mov esi, eax
test esi, esi
jne 0x40c1bd
mov eax, edi
jmp 0x40c213
xor ecx, ecx
push 2
pop edx
lea eax, [esi + 2]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00431fe1
cmp dword [edi + 0x18], 8
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x2c]
pop ecx
jb 0x40c1e3
mov eax, dword [eax]
lea ecx, [esi + 1]
push ecx
push dword [ebp - 0x24]
push eax
call ebx
test eax, eax
jbe 0x40c207
cmp eax, esi
ja 0x40c207
mov ecx, dword [ebp - 0x24]
and word [ecx + eax*2], 0
mov eax, ecx
lea esi, [ebp - 0x20]
call fcn.00401338
push dword [ebp - 0x24]
call fcn.004321ec
pop ecx
lea eax, [ebp - 0x20]
mov esi, dword [ebp - 0x28]
call fcn.00401aa6
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov eax, dword [ebp - 0x28]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004322fb
leave
ret
Function at 0x40d246
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa6
mov eax, esi
push 0x24
push eax
call fcn.0040d99d
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d27b
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d2a5
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004322fb
leave
ret
xor bl, bl
jmp 0x40d289

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa6
mov eax, esi
push 0x24
push eax
call fcn.0040d99d
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d2de
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d30c
test al, 0x10
jne 0x40d30c
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004322fb
leave
ret
xor bl, bl
jmp 0x40d2f0

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x44e4f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea esi, [ebp - 0x20]
call fcn.00401aa6
mov eax, esi
push 0x24
push eax
call fcn.0040d99d
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40d345
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d373
test al, 0x10
je 0x40d373
mov bl, 1
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.00401452
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.004322fb
leave
ret
xor bl, bl
jmp 0x40d357

Function at 0x40d377
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
cmp dword [edi + 0x18], 8
push esi
lea esi, [edi + 4]
jb 0x40d385
mov eax, dword [esi]
jmp 0x40d387
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d3a2
and eax, 0xfffffffe
push 0
push eax
mov eax, edi
call fcn.0040dc25
pop ecx
pop ecx
cmp dword [edi + 0x18], 8
jb 0x40d3aa
mov esi, dword [esi]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
pop esi
ret
Function at 0x40d3b9
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
mov eax, dword [0x44e4f8]
xor eax, esp
mov dword [esp + 0x98], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
push edi
lea esi, [esp + 0x20]
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
call fcn.00401aa6
mov eax, esi
push 0x10
push eax
call fcn.0040d99d
pop ecx
pop ecx
lea eax, [esp + 0x58]
call fcn.0040d107
lea esi, [esp + 0x1c]
call fcn.0040d878
lea eax, [esp + 0x3c]
push 0x442df4
push eax
lea eax, [esp + 0x28]
call fcn.00401fb4
pop ecx
pop ecx
mov ecx, esi
push ecx
lea edx, [esp + 0x5c]
mov ecx, eax
call fcn.0040d8a8
push ebx
push 1
lea esi, [esp + 0x44]
mov byte [esp + 0x23], al
call fcn.00401452
cmp byte [esp + 0x1b], bl
je 0x40d537
lea esi, [esp + 0x58]
call fcn.0040d1fb
test al, al
jne 0x40d521
mov eax, esi
call fcn.0040d1e8
test al, al
mov eax, esi
je 0x40d484
call fcn.0040d1e4
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe6
push eax
call fcn.0040d3b9
add esp, 0xc
jmp 0x40d4a7
call fcn.0040d1e4
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe6
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d377
movzx eax, al
cdq
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
jmp 0x40d515
lea esi, [esp + 0x58]
call fcn.0040d1fb
test al, al
jne 0x40d521
mov eax, esi
call fcn.0040d1e8
test al, al
mov eax, esi
je 0x40d4ea
call fcn.0040d1e4
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe6
push eax
call fcn.0040d3b9
add esp, 0xc
jmp 0x40d50d
call fcn.0040d1e4
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x28]
call fcn.00401fe6
pop ecx
pop ecx
lea edi, [esp + 0x3c]
call fcn.0040d377
movzx eax, al
cdq
add dword [esp + 0x10], eax
adc dword [esp + 0x14], edx
push ebx
push 1
lea esi, [esp + 0x44]
call fcn.00401452
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x5c]
call fcn.0040d915
test al, al
jne 0x40d4b1
lea eax, [esp + 0x1c]
call fcn.0040d966
lea eax, [esp + 0x20]
push 0x20
push eax
call fcn.0040d99d
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
pop ecx
pop ecx
jae 0x40d55d
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40d579
and eax, 0xfffffffe
push ebx
push eax
lea eax, [esp + 0x28]
call fcn.0040dc25
pop ecx
pop ecx
cmp dword [esp + 0x38], 8
mov eax, dword [esp + 0x24]
jae 0x40d588
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40d59c
add dword [esp + 0x10], 1
adc dword [esp + 0x14], ebx
lea edi, [esp + 0x1c]
call fcn.0040d890
lea eax, [esp + 0x58]
call fcn.0040d135
push ebx
push 1
lea esi, [esp + 0x28]
call fcn.00401452
mov ecx, dword [esp + 0xa4]
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004322fb
mov esp, ebp
pop ebp
ret