joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423d57
Capabilities:
Connect to http server
Create http request
Parse url
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x7dc]
sub esp, 0x85c
mov eax, dword [0x4806f0]
xor eax, ebp
mov dword [ebp + 0x7d8], eax
push ebx
mov ebx, dword [ebp + 0x7e4]
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp - 0x2c]
push eax
push 2
xor esi, esi
push esi
mov dword [ebp - 0x2c], 0x7530
call edi
push 4
lea eax, [ebp - 0x2c]
push eax
push 6
push esi
call edi
push 4
lea eax, [ebp - 0x2c]
push eax
push 5
push esi
call edi
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x80]
push esi
push eax
call fcn.0044f280
lea eax, [ebp - 0x28]
mov dword [ebp - 0x70], eax
mov eax, 0x400
add esp, 0xc
cmp byte [ebx + 7], 0xff
lea ecx, [ebp + 0x3d8]
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
jne 0x423de1
mov ebx, dword [ebx]
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
push esi
push esi
push esi
push esi
push str.StubInstaller
mov dword [ebp - 0x30], esi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x34], eax
cmp eax, esi
je 0x423e8e
push esi
push esi
push 3
push esi
push esi
push 0x50
lea ecx, [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 0x38], eax
cmp eax, esi
je 0x423e89
push esi
push esi
lea ecx, [ebp - 0x44]
push ecx
push esi
push esi
lea ecx, [ebp + 0x3d8]
push ecx
push str.HEAD
push eax
mov dword [ebp - 0x44], 0x475e74
mov dword [ebp - 0x40], esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
cmp ebx, esi
je 0x423e84
push esi
push esi
push esi
push esi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x423e81
push esi
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x30]
push eax
push 0x20000013
push ebx
mov dword [ebp - 0x3c], 4
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
push ebx
call edi
push dword [ebp - 0x38]
call edi
push dword [ebp - 0x34]
call edi
mov ecx, dword [ebp + 0x7d8]
mov eax, dword [ebp - 0x30]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044f6e0
add ebp, 0x7dc
leave
ret 4
Function at 0x4270dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ecx
push edx
push esi
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
mov edx, ecx
cmp edx, 4
jl 0x427123
cmp edx, 0x10
jl 0x42710f
shr ecx, 4
nop
xor eax, dword [ebx]
mov esi, dword [ebx + 4]
xor eax, dword [ebx + 8]
xor esi, dword [ebx + 0xc]
add ebx, 0x10
xor eax, esi
dec ecx
jne 0x4270fc
mov ecx, edx
shr ecx, 2
and ecx, 3
test ecx, ecx
je 0x427123
xor eax, dword [ebx]
add ebx, 4
dec ecx
jne 0x42711b
and edx, 3
cmp edx, 3
jne 0x427137
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 0x10
xor eax, ecx
jmp 0x42713c
cmp edx, 2
jne 0x427148
xor ecx, ecx
mov cl, byte [ebx]
inc ebx
shl ecx, 8
xor eax, ecx
jmp 0x42714d
cmp edx, 1
jne 0x427153
xor ecx, ecx
mov cl, byte [ebx]
xor eax, ecx
pop esi
pop edx
pop ecx
pop ebx
ret
Function at 0x42cb50
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x4806f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x94
lea eax, [ebp - 0x98]
push 0
push eax
call fcn.0044f280
add esp, 0xc
lea ecx, [ebp - 0x98]
push ecx
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 6
push 0xc
jb 0x42cbc8
call fcn.0044fff4
add esp, 4
test eax, eax
je 0x42cbbc
mov ecx, eax
call fcn.0042cf50
push eax
mov ecx, esi
call fcn.0042ca50
jmp 0x42cbe7
xor eax, eax
push eax
mov ecx, esi
call fcn.0042ca50
jmp 0x42cbe7
call fcn.0044fff4
add esp, 4
test eax, eax
je 0x42cbdd
mov ecx, eax
call fcn.0042e040
jmp 0x42cbdf
xor eax, eax
push eax
mov ecx, esi
call fcn.0042cad0
mov eax, dword [esi]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
and eax, 0x7ff8fff2
xor ecx, ebp
add eax, 0x8007000e
pop esi
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret
Function at 0x4313f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x18
mov dword [ebp - 4], 0
call fcn.0044fff4
add esp, 4
test eax, eax
je 0x431417
mov ecx, eax
call fcn.0046da60
mov esi, eax
test esi, esi
jne 0x431423
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [esi]
mov ecx, dword [eax + 4]
push ebx
push edi
push esi
call ecx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0x431459
mov edi, dword [ebp + 0x10]
mov edx, dword [esi]
mov eax, dword [edx + 0x14]
push edi
push esi
call eax
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1c]
push ebx
push edi
push 1
push esi
call edx
push eax
call fcn.00453efc
add esp, 0x10
test eax, eax
jge 0x431462
xor eax, eax
mov edi, 0x80004005
jmp 0x431465
mov edi, dword [ebp - 4]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x14]
push eax
push esi
call edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push esi
push edi
push eax
call edx
mov edi, eax
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov eax, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4314a0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x4806f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x473600
push eax
call fcn.00450908
mov esi, eax
add esp, 8
test esi, esi
je 0x431524
push esi
call fcn.00453bf4
add esp, 4
test eax, eax
jne 0x43151b
lea esp, [esp]
push esi
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.00453efc
add esp, 0x10
test eax, eax
jle 0x43150e
push edi
push eax
lea ecx, [ebp - 0x204]
push 1
push ecx
call fcn.00454139
add esp, 0x10
push esi
call fcn.00453bf4
add esp, 4
test eax, eax
je 0x4314e0
push esi
call fcn.004506ac
add esp, 4
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.0044f6e0
mov esp, ebp
pop ebp
ret
Function at 0x431d30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0xc]
call fcn.0042ef80
mov eax, dword [esi + 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
mov edx, dword [esi + 0x58]
push edx
mov edx, dword [esi + 0x54]
push edx
mov edx, dword [esi + 0x40]
push edx
push eax
mov eax, dword [ecx + 0x24]
call eax
mov edx, dword [ebp - 4]
test edx, edx
jle 0x431edb
lea esp, [esp]
mov eax, dword [esi + 0x4c]
sub eax, 0
je 0x431de3
sub eax, 1
jne 0x431eb5
mov ecx, dword [esi + 0x5c]
cmp ecx, dword [esi + 0x60]
jle 0x431db6
mov ecx, dword [esi + 0x48]
push ecx
push edx
mov edx, dword [esi + 0x40]
push 1
push edx
call fcn.00454139
add dword [esi + 0x60], eax
mov ecx, dword [esi + 0x5c]
mov edx, dword [esi + 0x60]
mov eax, ecx
sub eax, edx
add esp, 0x10
cmp eax, 0x8000
jge 0x431db3
mov dword [esi + 0x58], eax
cmp ecx, dword [esi + 0x60]
jne 0x431eb5
mov eax, dword [esi + 0x48]
test eax, eax
je 0x431dcc
push eax
call fcn.004506ac
add esp, 4
mov eax, 0x200
mov dword [esi + 0x4c], 0
mov dword [esi + 0x54], eax
mov dword [esi + 0x58], eax
jmp 0x431eb5
mov eax, dword [str.rnempty0]
mov edi, dword [esi + 0x40]
push eax
lea ecx, [ebp - 0x14]
mov dword [esi + 0x50], edi
call fcn.0042f200
cmp byte [eax + 7], 0xff
jne 0x431dff
mov eax, dword [eax]
push edi
push eax
call fcn.0044fb7d
add esp, 8
test eax, eax
lea ecx, [ebp - 0x14]
sete bl
call fcn.0042f1e0
lea ecx, [ebp - 0xc]
push ecx
test bl, bl
je 0x431e50
mov edx, dword [esi + 0x50]
mov eax, dword [esi + 0x14]
add edx, 0x159
push edx
push eax
call fcn.00431600
add esp, 0xc
test eax, eax
jge 0x431eb5
lea ecx, [ebp - 0xc]
mov byte [esi + 0x20], 5
call fcn.0042f1e0
pop edi
pop esi
mov eax, 0x8004008a
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x50]
mov edx, dword [esi + 0x14]
push eax
add eax, 0x159
push eax
push edx
call fcn.00431780
xor edi, edi
add esp, 0x10
mov dword [esi + 0x48], eax
cmp eax, edi
je 0x431e38
mov eax, dword [esi + 0x50]
add eax, 0x7c
push 0xb
push eax
call fcn.004315c0
add esp, 8
cmp eax, edi
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], edi
jle 0x431ea9
cmp eax, 0x8000
mov dword [esi + 0x4c], 1
mov dword [esi + 0x54], edi
jge 0x431ea0
mov dword [esi + 0x58], eax
jmp 0x431eb5
mov dword [esi + 0x58], 0x8000
jmp 0x431eb5
mov ecx, dword [esi + 0x48]
push ecx
call fcn.004506ac
add esp, 4
mov eax, dword [esi + 0x3c]
mov edx, dword [eax]
mov edx, dword [edx + 0x24]
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [esi + 0x58]
push ecx
mov ecx, dword [esi + 0x54]
push ecx
mov ecx, dword [esi + 0x40]
push ecx
push eax
call edx
mov edx, dword [ebp - 4]
test edx, edx
jg 0x431d70
lea ecx, [ebp - 0xc]
call fcn.0042f1e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x431ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x38]
push ebx
call fcn.00435530
xor edi, edi
cmp dword [esi + 0x44], edi
je 0x431f1b
mov eax, dword [esi + 0x44]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov edi, eax
lea ecx, [ebp - 0x30]
call fcn.0043a2a0
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.0043a530
test edi, edi
jbe 0x431f47
mov esi, dword [esi + 0x44]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1c]
push edi
push esi
call edx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0043a7a0
push ebx
lea ecx, [ebp - 0x30]
push ecx
call fcn.00439b20
push eax
push 1
lea edx, [ebp - 0x30]
push edx
call fcn.00439b00
push eax
call fcn.00454139
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.0043a310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4327e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
sub esp, 0x30
push ebx
push esi
mov esi, dword [eax + 0x40]
push edi
lea ecx, [ebp - 0xc]
call fcn.0042ef80
mov eax, dword [ebp + 8]
cmp byte [eax], 0
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
push edi
je 0x432819
push 0x5c
push eax
push str._s_c_s
push ecx
call fcn.0042fd00
add esp, 0x14
jmp 0x43281e
call fcn.0042f2d0
cmp byte [ebp - 5], 0xff
lea eax, [ebp - 0xc]
jne 0x43282a
mov eax, dword [ebp - 0xc]
push 0x473600
push eax
call fcn.00450908
add esp, 8
mov ebx, eax
push edi
test ebx, ebx
jne 0x432866
push str.Cant_open_file__s_for_reading__skipping_n
call fcn.0045509a
add eax, 0x40
push eax
call fcn.00450728
add esp, 0xc
lea ecx, [ebp - 0xc]
call fcn.0042f1e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.Processing_file__s_for_compression_n
call fcn.0045509a
add eax, 0x20
push eax
call fcn.00450728
push 0x200
push 0
push esi
call fcn.0044f280
add esp, 0x18
cmp byte [ebp - 5], 0xff
lea eax, [ebp - 0xc]
jne 0x432895
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
push edi
push edx
lea ecx, [ebp - 0x30]
mov edx, esi
call fcn.00431f80
add esp, 8
mov dword [ebp + 8], eax
test eax, eax
jge 0x4328dd
push edi
push str.Cant_stat__s__skipping_n
call fcn.0045509a
add eax, 0x40
push eax
call fcn.00450728
push ebx
call fcn.004506ac
add esp, 0x10
lea ecx, [ebp - 0xc]
call fcn.0042f1e0
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
push eax
push edi
mov edi, dword [ebp + 0x10]
mov ecx, dword [edi + 0x38]
call fcn.004354e0
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x200
push esi
push eax
mov eax, dword [ecx + 0x14]
call eax
push ebx
call fcn.00453bf4
add esp, 4
test eax, eax
jne 0x432946
nop
push ebx
push 0x8000
push 1
push esi
call fcn.00453efc
add esp, 0x10
test eax, eax
jle 0x432939
mov ecx, dword [edi + 0x3c]
mov edx, dword [ecx]
lea edi, [ebp - 4]
push edi
push eax
mov eax, dword [edx + 0x14]
push esi
push ecx
call eax
mov edi, dword [ebp + 0x10]
push ebx
call fcn.00453bf4
add esp, 4
test eax, eax
je 0x432910
push ebx
call fcn.004506ac
add esp, 4
lea ecx, [ebp - 0xc]
call fcn.0042f1e0
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x433030
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x48332c], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
mov esi, ecx
je 0x433060
call ebx
sub eax, dword [0x48332c]
cmp eax, 0xc8
jae 0x433060
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x1c]
push edi
xor edi, edi
test eax, eax
je 0x4330c8
lea edx, [ebp - 4]
push edx
mov dword [ebp - 4], edi
mov ecx, dword [eax]
push 0x475f04
push eax
mov eax, dword [ecx]
call eax
cmp dword [ebp - 4], edi
je 0x4330c8
call ebx
mov edx, dword [ebp + 8]
mov dword [0x48332c], eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov edi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x4330a9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp edi, 0x80040088
jne 0x4330c8
mov eax, dword [esi + 0x44]
test eax, eax
je 0x4330c8
push eax
call fcn.004506ac
add esp, 4
mov dword [esi + 0x44], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4330e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov esi, ecx
mov ecx, dword [esi + 0x38]
push ebx
call fcn.00435530
xor edi, edi
cmp dword [esi + 0x40], edi
je 0x43310b
mov eax, dword [esi + 0x40]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x18]
push eax
call edx
mov edi, eax
lea ecx, [ebp - 0x30]
call fcn.0043a2a0
push edi
lea eax, [ebp - 0x30]
push eax
call fcn.0043a530
test edi, edi
jbe 0x433137
mov esi, dword [esi + 0x40]
mov ecx, dword [esi]
mov edx, dword [ecx + 0x1c]
push edi
push esi
call edx
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.0043a7a0
push ebx
lea ecx, [ebp - 0x30]
push ecx
call fcn.00439b20
push eax
push 1
lea edx, [ebp - 0x30]
push edx
call fcn.00439b00
push eax
call fcn.00454139
add esp, 0x10
lea ecx, [ebp - 0x30]
call fcn.0043a310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x435330
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push edi
lea eax, [ebp - 0x34]
push eax
mov edi, 0x400
call fcn.0043a9b0
add esp, 4
cmp dword [ebp - 0x2c], 8
jne 0x4353f2
push esi
lea ecx, [ebp - 0x18]
call fcn.0042ef80
push 0x104
lea ecx, [ebp - 0x18]
call fcn.0042fbb0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.0042fc40
test esi, esi
pop esi
je 0x4353ea
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0042f000
cmp eax, 0xffffffff
je 0x4353ea
push eax
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x18]
call fcn.0042f880
push eax
lea ecx, [ebp - 0x18]
call fcn.0042f220
lea ecx, [ebp - 0x20]
call fcn.0042f1e0
push 0x5c
lea ecx, [ebp - 0x18]
call fcn.0042f670
cmp byte [ebp - 0x11], 0xff
lea eax, [ebp - 0x18]
jne 0x4353c8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0xc]
push edx
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x4353ea
mov edi, dword [ebp - 4]
imul edi, dword [ebp - 8]
lea ecx, [ebp - 0x18]
call fcn.0042f1e0
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x435530
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x60]
call fcn.0043a2a0
push esi
lea ecx, [ebp - 0x60]
call fcn.00439b40
lea eax, [ebp - 0x60]
push eax
call fcn.00439b20
lea ecx, [ebp - 0x30]
mov edi, eax
call fcn.0043a2a0
cmp byte [esi + 0x23], 0xff
lea eax, [esi + 0x1c]
jne 0x43556a
mov eax, dword [eax]
push 4
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.0043a7a0
push edi
lea edx, [ebp - 0x30]
push edx
call fcn.0043a530
lea eax, [ebp - 0x30]
push eax
call fcn.00439b20
mov ebx, dword [ebp + 8]
push ebx
mov esi, eax
push esi
push 1
lea ecx, [ebp - 0x30]
push ecx
call fcn.00439b00
push eax
call fcn.00454139
add esp, 0x10
cmp eax, esi
je 0x4355c4
lea ecx, [ebp - 0x30]
call fcn.0043a310
lea ecx, [ebp - 0x60]
call fcn.0043a310
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
push edi
push 1
lea edx, [ebp - 0x60]
push edx
call fcn.00439b00
push eax
call fcn.00454139
add esp, 0x10
lea ecx, [ebp - 0x30]
cmp eax, edi
jne 0x4355ab
call fcn.0043a310
lea ecx, [ebp - 0x60]
call fcn.0043a310
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
lea eax, [ebp - 8]
push eax
call fcn.00437fd0
cmp byte [eax + 7], 0xff
jne 0x43828a
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 8]
mov ebx, eax
call fcn.0042f1e0
cmp ebx, 0xffffffff
je 0x4382b0
test bl, 0x10
je 0x4382b0
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4382c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 8
lea eax, [ebp - 8]
push eax
call fcn.00437fd0
cmp byte [eax + 7], 0xff
jne 0x4382da
mov eax, dword [eax]
push esi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 8]
mov esi, eax
call fcn.0042f1e0
mov eax, esi
neg eax
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x438360
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x48
push ebx
call fcn.00437f40
lea ecx, [ebp - 0x18]
call fcn.0042ef80
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x43855c
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.SHGetSpecialFolderLocation
push ebx
call esi
push 0x477430
push ebx
mov dword [ebp - 4], eax
call esi
mov edi, eax
test edi, edi
jne 0x4383b7
push str.SHGetPathFromIDList
push ebx
call esi
mov edi, eax
push str.SHGetMalloc
push ebx
call esi
mov esi, eax
mov eax, dword [ebp - 4]
test eax, eax
je 0x438553
test edi, edi
je 0x438553
test esi, esi
je 0x438553
mov edx, dword [ebp + 0x10]
neg edx
sbb edx, edx
lea ecx, [ebp - 8]
and edx, 0xfffffff7
push ecx
add edx, 0x23
push edx
push 0
mov dword [ebp - 8], 0
call eax
test eax, eax
jne 0x43844c
push 0x105
lea ecx, [ebp - 0x18]
call fcn.0042fbb0
push eax
mov eax, dword [ebp - 8]
push eax
call edi
lea ecx, [ebp - 4]
xor edi, edi
push ecx
mov dword [ebp - 4], edi
call esi
test eax, eax
jl 0x438440
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov edx, dword [eax]
mov edx, dword [edx + 0x14]
push ecx
push eax
call edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0042fc40
jmp 0x4384b0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4384b0
lea ecx, [ebp - 0xc]
push ecx
push 0x105
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0x104
call fcn.0042fbb0
push eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x10]
push edx
push 0
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0042fc40
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
call fcn.00401005
test al, al
jne 0x438553
mov edi, dword [ebp + 8]
lea edx, [ebp - 0x18]
push edx
mov ecx, edi
call fcn.00437fb0
push edi
call fcn.00438270
add esp, 4
test eax, eax
jne 0x4384e4
push edi
call fcn.004382c0
add esp, 4
push str.Real
lea eax, [ebp - 0x48]
push eax
mov ecx, edi
call fcn.00438010
push eax
mov ecx, edi
call fcn.004381a0
lea ecx, [ebp - 0x48]
call fcn.00437fa0
push edi
call fcn.00438270
add esp, 4
test eax, eax
jne 0x43851a
push edi
call fcn.004382c0
add esp, 4
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x438553
push eax
lea ecx, [ebp - 0x48]
push ecx
mov ecx, edi
call fcn.00438010
push eax
mov ecx, edi
call fcn.004381a0
lea ecx, [ebp - 0x48]
call fcn.00437fa0
push edi
call fcn.00438270
add esp, 4
test eax, eax
jne 0x438553
push edi
call fcn.004382c0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
lea ecx, [ebp - 0x18]
call fcn.0042f1e0
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x438570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
sub esp, 0x18
push ebx
call fcn.00437f40
lea ecx, [ebp - 0x18]
call fcn.0042ef80
push str.shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
je 0x438744
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
push str.SHGetSpecialFolderLocation
push ebx
call esi
push 0x477430
push ebx
mov dword [ebp - 8], eax
call esi
mov edi, eax
test edi, edi
jne 0x4385c7
push str.SHGetPathFromIDList
push ebx
call esi
mov edi, eax
push str.SHGetMalloc
push ebx
call esi
mov ecx, dword [ebp - 8]
xor esi, esi
mov dword [ebp - 0xc], eax
cmp ecx, esi
je 0x43873b
cmp edi, esi
je 0x43873b
cmp eax, esi
je 0x43873b
lea eax, [ebp - 4]
push eax
push 0x1c
push esi
mov dword [ebp - 4], esi
call ecx
test eax, eax
jne 0x438650
push 0x105
lea ecx, [ebp - 0x18]
call fcn.0042fbb0
mov ecx, dword [ebp - 4]
push eax
push ecx
call edi
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], esi
call dword [ebp - 0xc]
test eax, eax
jl 0x438641
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0042fc40
jmp 0x43870b
lea eax, [ebp - 4]
push eax
push 0x1a
push esi
call dword [ebp - 8]
test eax, eax
jne 0x4386ac
push 0x105
lea ecx, [ebp - 0x18]
call fcn.0042fbb0
mov ecx, dword [ebp - 4]
push eax
push ecx
call edi
lea edx, [ebp - 8]
push edx
mov dword [ebp - 8], esi
call dword [ebp - 0xc]
test eax, eax
jl 0x4386a0
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x14]
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0042fc40
jmp 0x43870b
lea eax, [ebp - 8]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 8], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x43870b
lea ecx, [ebp - 0xc]
push ecx
push 0x105
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], 0x104
call fcn.0042fbb0
push eax
mov eax, dword [ebp - 8]
lea edx, [ebp - 0x10]
push edx
push esi
push str.ProgramFilesDir
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.0042fc40
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x18]
call fcn.00401005
test al, al
jne 0x43873b
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x18]
push edx
mov ecx, esi
call fcn.00437fb0
push esi
call fcn.00438270
add esp, 4
test eax, eax
jne 0x43873b
push esi
call fcn.004382c0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
lea ecx, [ebp - 0x18]
call fcn.0042f1e0
mov eax, dword [ebp + 8]
pop ebx
mov esp, ebp
pop ebp
ret