joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e241
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
or dword [ebp - 8], 0xffffffff
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
push edi
xor edi, edi
push edi
lea eax, [ebp - 4]
push eax
push edi
push edi
push 0x13
push dword [ebp + 8]
mov dword [ebp - 4], edi
call esi
cmp eax, edi
jne 0x40e274
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40e2d1
mov eax, dword [ebp - 4]
push ebx
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425b95
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x40e2d0
mov eax, dword [ebp - 4]
add eax, eax
push eax
push edi
push ebx
call fcn.00427370
add esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x13
push dword [ebp + 8]
call esi
test eax, eax
je 0x40e2c9
lea eax, [ebp - 8]
push eax
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_StrToIntExW]
test eax, eax
jne 0x40e2c9
or dword [ebp - 8], 0xffffffff
push ebx
call fcn.00426909
pop ecx
pop ebx
mov eax, dword [ebp - 8]
pop edi
pop esi
leave
ret 4

Function at 0x40e3dd
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x84]
mov eax, dword [edi]
xor ebx, ebx
cmp eax, ebx
je 0x40e3fe
push eax
call fcn.00426909
pop ecx
mov dword [edi], ebx
mov dword [esi + 0x88], ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40e4b8
push dword [esi + 0x88]
mov ecx, esi
call fcn.0040e01d
mov eax, dword [ebp - 4]
inc eax
push eax
call fcn.00425b95
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40e48e
mov eax, dword [ebp - 4]
inc eax
push eax
push ebx
push edi
call fcn.00427370
add esp, 0xc
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
mov dword [ebp - 8], ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40e487
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp - 8]
push edi
call fcn.0040e2da
test al, al
je 0x40e4c4
mov ecx, dword [esi + 0x1a4]
cmp dword [ecx + 0x20], ebx
je 0x40e4c4
push dword [ebp - 8]
push edi
call fcn.0040db1c
push edi
call fcn.00426909
pop ecx
cmp dword [ebp - 4], ebx
ja 0x40e404
push dword [esi + 0x88]
mov ecx, esi
call fcn.0040e01d
mov ecx, dword [esi + 0x1a4]
call fcn.0040db0e
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
xor al, al
jmp 0x40e4b1

Function at 0x40e87d
Capabilities:
Initialize winhttp library

Disassembly:
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi + 4], edi
jne 0x40e8be
lea eax, [esi + 0x120]
cmp dword [eax + 0x18], 8
jb 0x40e899
mov eax, dword [eax + 4]
jmp 0x40e89c
add eax, 4
push edi
push edi
push edi
push edi
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 4], eax
cmp eax, edi
jne 0x40e8be
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
xor al, al
jmp 0x40e8c0
mov al, 1
pop edi
pop esi
ret
Function at 0x40e8c3
Capabilities:
Set http header

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, ecx
mov ecx, dword [eax + 0x14]
test ecx, ecx
je 0x40e904
cmp dword [eax + 0x18], 8
jb 0x40e8dc
mov eax, dword [eax + 4]
jmp 0x40e8df
add eax, 4
push 0x1000000
push ecx
push eax
push dword [esp + 0x14]
call dword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
jne 0x40e904
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
xor al, al
jmp 0x40e906
mov al, 1
pop esi
ret 8

Function at 0x40fe3e
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
xor ebx, ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push 0x16
push dword [ebp + 8]
mov byte [ebp - 1], bl
mov dword [ebp - 8], ebx
call esi
cmp eax, ebx
jne 0x40fe70
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x40fec6
mov eax, dword [ebp - 8]
push edi
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00425b95
mov edi, eax
pop ecx
cmp edi, ebx
je 0x40fec5
mov eax, dword [ebp - 8]
add eax, eax
push eax
push ebx
push edi
call fcn.00427370
add esp, 0xc
push ebx
lea eax, [ebp - 8]
push eax
push edi
push ebx
push 0x16
push dword [ebp + 8]
call esi
test eax, eax
je 0x40febe
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00405941
mov byte [ebp - 1], 1
push edi
call fcn.00426909
pop ecx
pop edi
mov al, byte [ebp - 1]
pop esi
pop ebx
leave
ret 8
Function at 0x410607
Capabilities:
Prepare http request

Disassembly:
push 0x60
mov eax, 0x439ff0
call fcn.00426868
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov byte [ebp - 0x66], bl
call fcn.0040e4df
mov ecx, dword [esi + 0x1a4]
push 2
call fcn.0040db21
test al, al
jne 0x410642
mov dword [esi + 0x114], 2
jmp 0x4107ce
push edi
lea ecx, [ebp - 0x64]
call fcn.00407249
mov dword [ebp - 4], ebx
cmp dword [esi + 0x28], ebx
je 0x4107b9
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
call fcn.0040fde6
test al, al
je 0x4107b9
mov ecx, esi
call fcn.0040e87d
test al, al
je 0x4107c3
push dword [esi + 0x1a0]
push dword [esi + 0x19c]
push dword [esi + 0x198]
push dword [esi + 0x194]
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetTimeouts]
push ebx
push 0x10000
push 0x40e50f
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
push 7
pop edi
push ebx
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], edi
call fcn.0040557d
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], edi
call fcn.0040557d
lea eax, [ebp - 0x65]
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x48]
push eax
sub esp, 0x1c
lea eax, [esi + 0x14]
mov ecx, esp
mov dword [ebp - 0x6c], esp
push eax
mov byte [ebp - 4], 2
call fcn.00407249
mov ecx, esi
call fcn.0040ffe5
cmp al, bl
je 0x4107a1
cmp dword [ebp - 0x30], 8
mov eax, dword [ebp - 0x44]
jae 0x410709
lea eax, [ebp - 0x44]
push ebx
push dword [ebp - 0x6c]
push eax
push dword [esi + 4]
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov dword [esi + 8], eax
cmp eax, ebx
je 0x41079a
movzx ecx, byte [ebp - 0x65]
mov edi, dword [ebp - 0x28]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
cmp dword [ebp - 0x14], 8
jae 0x410738
lea edi, [ebp - 0x28]
cmp dword [ebp - 0x4c], 8
mov edx, dword [ebp - 0x60]
jae 0x410744
lea edx, [ebp - 0x60]
push ecx
push ebx
push ebx
push ebx
push edi
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [esi + 0xc], eax
cmp eax, ebx
je 0x41079a
cmp byte [esi + 0x10], bl
jne 0x41076a
cmp byte [ebp - 0x65], bl
je 0x41076a
push eax
mov ecx, esi
call fcn.0040e0e8
lea eax, [esi + 0xdc]
push eax
push dword [esi + 0xc]
mov ecx, esi
call fcn.0040e8c3
test al, al
je 0x41079a
lea eax, [esi + 0xb8]
push eax
push dword [esi + 0xc]
mov ecx, esi
call fcn.004105ad
test al, al
je 0x41079a
mov byte [ebp - 0x66], 1
jmp 0x4107a1
mov ecx, esi
call fcn.0040e4df
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405621
push ebx
push 1
lea ecx, [ebp - 0x48]
call fcn.00405621
jmp 0x4107c3
mov dword [esi + 0x114], 0x57
push ebx
push 1
lea ecx, [ebp - 0x64]
call fcn.00405621
mov al, byte [ebp - 0x66]
call fcn.004268eb
ret 4
Function at 0x411920
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
xor ebx, ebx
mov esi, ecx
mov byte [ebp - 1], bl
call fcn.00410607
test al, al
je 0x4119d4
lea eax, [esi + 0x15c]
cmp dword [eax + 0x18], 8
jb 0x41194f
mov edx, dword [eax + 4]
jmp 0x411952
lea edx, [eax + 4]
lea eax, [esi + 0x140]
cmp dword [eax + 0x18], 8
jb 0x411963
mov ecx, dword [eax + 4]
jmp 0x411966
lea ecx, [eax + 4]
lea eax, [esi + 0xf8]
cmp dword [eax + 0x18], 8
jb 0x411977
mov eax, dword [eax + 4]
jmp 0x41197a
add eax, 4
push edx
push ecx
push eax
push dword [esi + 0xc]
mov ecx, esi
call fcn.0040e147
cmp byte [ebp + 0xc], bl
je 0x411996
push dword [esi + 0xc]
mov ecx, esi
call fcn.0040e10d
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x4119eb
push dword [esi + 0xc]
mov ecx, esi
call fcn.0040e7f5
test al, al
je 0x4119d4
push esi
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [esi + 0xc]
call edi
test eax, eax
jne 0x4119eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
push dword [esi + 0x114]
mov ecx, esi
call fcn.0040e000
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 0x10
push dword [esi + 0xc]
mov ecx, esi
call fcn.0040e1fd
test al, al
je 0x4119d4
push ebx
push dword [esi + 0xc]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x411a1c
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [esi + 0xc]
call fcn.004118c5
mov byte [ebp - 1], al
jmp 0x411a28
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x114], eax
cmp byte [ebp - 1], bl
je 0x4119d4
mov ecx, esi
call fcn.0040dfe9
jmp 0x4119e1

Function at 0x412374
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
call fcn.00411c2d
xor eax, eax
push eax
push eax
push esi
push 0x41234a
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x18], eax
pop esi
ret

Function at 0x412afe
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x2c], ebp
jne 0x412b76
mov ecx, dword [esi + 0x10]
cmp ecx, ebp
jle 0x412b76
mov edx, dword [esi + 0x14]
cmp edx, ebp
jle 0x412b76
push ebx
push ebp
push 1
call fcn.00407afd
mov ebx, eax
cmp ebx, ebp
je 0x412b71
push edi
push ebp
push 0x80
push 2
push ebp
push 1
push 0x40000000
mov ecx, esi
call fcn.00407453
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x412b69
push ebp
lea eax, [esp + 0x14]
push eax
push dword [esi + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [esi + 0x4c], 1
push ebx
call fcn.00426909
pop ecx
pop edi
mov al, 1
pop ebx
jmp 0x412b78
xor al, al
pop esi
pop ebp
pop ecx
ret
Function at 0x413077
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x24]
call fcn.0040acb3
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
xor edi, edi
push edi
push edi
push edi
push edi
call ebx
push edi
push edi
push 1
push edi
mov dword [esi + 0x1c], eax
call ebx
push edi
push edi
push esi
push 0x413069
push edi
push edi
mov dword [esi + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
push 0x190
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x4174ba
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2008
call fcn.00427b30
mov eax, dword [0x44ad18]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
call fcn.0041520d
mov ecx, esi
call fcn.00417240
mov ecx, esi
call fcn.0040cb66
lea edi, [esi + 0xcc]
mov eax, dword [edi]
push dword [eax + 0x328]
mov ecx, esi
call fcn.0040cd97
mov eax, dword [edi]
add eax, 0x310
push eax
mov ecx, esi
call fcn.0040cdf9
xor eax, eax
push 0x1ffe
push eax
mov word [ebp - 0x2004], ax
lea eax, [ebp - 0x2002]
push eax
call fcn.00427370
lea edi, [esi + 0xb0]
add esp, 0xc
mov ecx, edi
call fcn.004083b0
cmp dword [esi + 0xc4], 0
jne 0x417561
push 0
push 0x10
lea eax, [ebp - 0x2004]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x2004]
push eax
mov ecx, edi
call fcn.00405941
cmp dword [edi + 0x18], 8
mov dword [ebp - method.LabelTextSetter.virtual_0], vtable.LabelTextSetter.0
jb 0x417576
mov edi, dword [edi + 4]
jmp 0x417579
add edi, 4
mov esi, dword [esi + 8]
push edi
push 0xf
push esi
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
lea ecx, [ebp - 0x2008]
call fcn.00405d22
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004267f0
leave
ret

Function at 0x4178c3
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a8], 0
jne 0x417916
push edi
push 0xfffffffffffffff0
lea edi, [esi + 0xec]
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 8
push eax
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [esi + 0xe8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x1e
push 0x1d20
push dword [esi + 8]
call dword [sym.imp.USER32.dll_SetTimer]
mov byte [esi + 0x1a8], 1
pop edi
pop esi
ret

Function at 0x417918
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x1a8], 0
je 0x417967
push edi
push 0xfffffffffffffff0
lea edi, [esi + 0xec]
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowLongW]
and eax, 0xfffffff7
push eax
push 0xfffffffffffffff0
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 5
push dword [esi + 0xe8]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x1d20
push dword [esi + 8]
call dword [sym.imp.USER32.dll_KillTimer]
mov byte [esi + 0x1a8], 0
pop edi
pop esi
ret

Function at 0x417969
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x3d], 1
push 0
jne 0x417981
call fcn.0040cf86
mov ecx, esi
pop esi
jmp fcn.0040d004
call fcn.0040d2c9
pop esi
ret
Function at 0x4267f0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44ad18]
jne 0x4267fa
repz ret
jmp fcn.0042c39c

Function at 0x43518d
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.0042b733
and dword [ebp - 4], 0
cmp dword [0x44cef0], 0
mov ebx, eax
jne 0x43523e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4352ef
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x4352ef
push eax
call fcn.0042b6c1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44cef0], eax
call esi
push eax
call fcn.0042b6c1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44cef4], eax
call esi
push eax
call fcn.0042b6c1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44cef8], eax
call esi
push eax
call fcn.0042b6c1
pop ecx
mov dword [0x44cf00], eax
test eax, eax
je 0x43523e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0042b6c1
pop ecx
mov dword [0x44cefc], eax
mov eax, dword [0x44cefc]
cmp eax, ebx
je 0x435296
cmp dword [0x44cf00], ebx
je 0x435296
push eax
call fcn.0042b73c
push dword [0x44cf00]
mov esi, eax
call fcn.0042b73c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x435296
test edi, edi
je 0x435296
call esi
test eax, eax
je 0x43528d
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43528d
test byte [ebp - 0xc], 1
jne 0x435296
or dword [ebp + 0x10], 0x200000
jmp 0x4352cf
mov eax, dword [0x44cef4]
cmp eax, ebx
je 0x4352cf
push eax
call fcn.0042b73c
pop ecx
test eax, eax
je 0x4352cf
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4352cf
mov eax, dword [0x44cef8]
cmp eax, ebx
je 0x4352cf
push eax
call fcn.0042b73c
pop ecx
test eax, eax
je 0x4352cf
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44cef0]
call fcn.0042b73c
pop ecx
test eax, eax
je 0x4352ef
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4352f1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000e820
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [eax], ebx
je 0x1000e86d
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x1000e868
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x1000e852
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x1000e85a
cmp edx, ebx
jne 0x1000e9a8
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x1000e829
add eax, dword [eax + 4]
jmp 0x1000e816
mov dword [ebp + 0xc], ebx
jmp 0x1000e878
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000e890
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000e8ae
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000e90c
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000e8f3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000e8fc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000e906
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000e8e8
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000e872
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000e959
dec eax
je 0x1000e950
sub eax, 3
je 0x1000e947
mov dword [ebp - 4], 0x40
jmp 0x1000e976
mov dword [ebp - 4], 4
jmp 0x1000e95c
mov dword [ebp - 4], 0x20
jmp 0x1000e95c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000e9a8
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000e928
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000e1b9
add dword [esi + ecx*8 + 0x1475ff1c], 0xff56016a
xlatb
mov eax, esi
jmp 0x1000e9b4
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4011a0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00401100
mov eax, dword [esp + 0x118]
dec eax
cmp eax, 8
ja case.default.0x4011c2
jmp dword [eax*4 + 0x4013ac]
lea ecx, [esp + 0x10]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.00401600
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
lea eax, [esp + 0x10]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00401600
push 0x4043d8
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::operator
push 0x4043d8
lea ecx, [ebp + 8]
call sub.MFC42.DLL_CString::operator
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
lea edx, [esp + 0x10]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x10], 0x5c
je 0x4012c5
jmp 0x401297
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x401249
lea ecx, [esp + 0x10]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x10], 0x5c
je 0x4012c5
mov edi, 0x404028
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x10]
mov ecx, ebp
push eax
call fcn.00401600
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
lea ecx, [esp + 0x10]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x10]
mov ecx, ebp
push edx
call fcn.00401600
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
push str.Desktop
mov ecx, ebp
call fcn.004013d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
push str.Favorites
mov ecx, ebp
call fcn.004013d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
lea eax, [esp + 0x10]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov esi, dword [sym.imp.MSVCRT.dll__tempnam]
lea ecx, [esp + 0x10]
push 0x404010
push ecx
call esi
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x40134f
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
mov ecx, ebp
call fcn.00401600
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret 4
Function at 0x4013d0
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x110
lea eax, [esp]
push ebx
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
mov ebx, ecx
push 0x80000001
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40148b
lea ecx, [esp + 8]
lea edx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0x10]
push edx
mov edx, dword [esp + 0xc]
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401480
push edi
lea edi, [esp + 0x14]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0x14], 0x5c
je 0x401473
mov edi, 0x404028
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
lea edx, [esp + 0x1c]
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
pop ebp
lea eax, [esp + 0x14]
mov ecx, ebx
push eax
call fcn.00401600
pop edi
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
add esp, 0x110
ret 4