joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402f90
Capabilities:
Check if file exists
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x41bf3b
mov eax, dword fs:[0]
push eax
mov eax, 0x221c
call fcn.0041a460
mov eax, dword [0x4261d0]
xor eax, esp
mov dword [esp + 0x2218], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4261d0]
xor eax, esp
push eax
lea eax, [esp + 0x2230]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2240]
xor ebx, ebx
push 0x206
lea ecx, [esp + 0x2a]
xor eax, eax
push ebx
mov dword [esp + 0x20], ebx
push ecx
mov word [esp + 0x30], ax
call fcn.0040f2d0
add esp, 0xc
push 0x104
lea edx, [esp + 0x28]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push str.360Root.exe
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x403114
push 0x1fff
lea ecx, [esp + 0x231]
push ebx
push ecx
mov byte [esp + 0x238], bl
call fcn.0040f2d0
add esp, 0xc
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x403114
cmp eax, 0x1fff
ja 0x403114
lea ecx, [esp + 0x22c]
push ecx
push eax
push ebx
lea edx, [esp + 0x30]
push edx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x403114
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0x41f3fc
lea edx, [esp + 0x238]
push edx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x403114
lea esi, [esp + 0x14]
call fcn.00402660
mov dword [esp + 0x2238], ebx
mov eax, dword [esp + 0x18]
movzx ecx, word [eax + 0xc]
movzx edx, word [eax + 0xe]
push ecx
movzx ecx, word [eax + 8]
push edx
movzx edx, word [eax + 0xa]
push ecx
push edx
push 0x41f400
mov edi, esi
call fcn.004026a0
mov eax, dword [esp + 0x28]
add esp, 0x14
add eax, 0xfffffff0
call fcn.00401790
add eax, 0x10
mov dword [ebp], eax
mov eax, esi
call fcn.00402640
jmp 0x40311f
push ebp
mov ecx, 0x41f304
call fcn.00402570
mov eax, ebp
mov ecx, dword [esp + 0x2230]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2218]
xor ecx, esp
call fcn.0040d217
add esp, 0x2228
ret
Function at 0x4036b0
Capabilities:
Create thread
Terminate thread

Disassembly:
push esi
push 0
push 0
push eax
push 0x4033a0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
push 0x493e0
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4036e3
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
ret

Function at 0x404940
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0xc
push esi
mov esi, eax
cmp byte [esi + 0x38], 0
push edi
mov edi, 0x10
je 0x404a5e
cmp dword [esi + 0x34], edi
jb 0x404960
mov ecx, dword [esi + 0x20]
jmp 0x404963
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], edi
jb 0x40496d
mov eax, dword [esi + 4]
jmp 0x404970
lea eax, [esi + 4]
push ebp
mov ebp, dword [esp + 0x1c]
push ecx
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s___filename__s__r_n_r_n
push ebp
call fcn.0040dc36
mov eax, str.__MULTI_PARTS_FORM_DATA_BOUNDARY
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404992
mov ecx, dword [esi + 0x30]
add ecx, dword [esi + 0x14]
sub eax, edx
push ebx
lea ebx, [ecx + eax + 0x3c]
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x34], edi
jb 0x4049b4
mov esi, dword [esi + 0x20]
jmp 0x4049b7
add esi, 0x20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
xor esi, esi
cmp edi, esi
je 0x404abb
cmp edi, 0xffffffff
je 0x404abb
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
lea edx, [esp + 0x14]
push edx
push 0x400
add ebx, ebp
mov ebp, dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], esi
call ebp
test eax, eax
je 0x404a37
mov eax, dword [esp + 0x10]
test eax, eax
jbe 0x404a37
cmp esi, dword [esp + 0x14]
ja 0x404a37
push 0
add esi, eax
lea eax, [esp + 0x14]
push eax
push 0x400
lea ecx, [esi + ebx]
push ecx
push edi
call ebp
test eax, eax
jne 0x404a10
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
add esi, edx
mov eax, 0xa0d
push edi
mov word [esi + ecx], ax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop ebp
pop edi
lea eax, [esi + 2]
pop esi
add esp, 0xc
ret 4
cmp dword [esi + 0x34], edi
jb 0x404a68
mov ecx, dword [esi + 0x20]
jmp 0x404a6b
lea ecx, [esi + 0x20]
cmp dword [esi + 0x18], edi
jb 0x404a75
mov eax, dword [esi + 4]
jmp 0x404a78
lea eax, [esi + 4]
mov edx, dword [esp + 0x18]
push ecx
push eax
push str.__MULTI_PARTS_FORM_DATA_BOUNDARY
push str.___s_r_nContent_Disposition:_form_data__name__s__r_n_r_n_s_r_n
push edx
call fcn.0040dc36
mov eax, str.__MULTI_PARTS_FORM_DATA_BOUNDARY
add esp, 0x14
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404aa0
mov ecx, dword [esi + 0x30]
sub eax, edx
add ecx, dword [esi + 0x14]
pop edi
lea eax, [ecx + eax + 0x31]
pop esi
add esp, 0xc
ret 4
mov eax, ebx
pop ebx
pop ebp
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x405ad0
Capabilities:
Get file size

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [edi + 0xa0], eax
jbe 0x405bd9
mov eax, dword [edi + 0x9c]
mov ecx, dword [eax]
mov ebx, dword [edi + 0x88]
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], ecx
jmp 0x405b10
mov esi, dword [edi + 0x9c]
mov eax, dword [edi + 0x88]
test ebx, ebx
je 0x405b24
cmp ebx, eax
je 0x405b29
call fcn.0040d799
cmp dword [esp + 0x18], esi
je 0x405bd5
test ebx, ebx
jne 0x405b64
call fcn.0040d799
xor eax, eax
mov edx, dword [esp + 0x18]
cmp edx, dword [eax + 0x14]
jne 0x405b4c
call fcn.0040d799
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 8]
cmp byte [eax + 0x38], 0
je 0x405ba0
cmp dword [eax + 0x34], 0x10
jb 0x405b68
mov eax, dword [eax + 0x20]
jmp 0x405b6b
mov eax, dword [ebx]
jmp 0x405b3e
add eax, 0x20
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call ebp
mov edi, eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push edi
add esi, 0x1800
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x405ba5
mov esi, 0x2000
add dword [esp + 0x10], esi
test ebx, ebx
jne 0x405bd1
call fcn.0040d799
xor eax, eax
mov ecx, dword [esp + 0x18]
cmp ecx, dword [eax + 0x14]
jne 0x405bc2
call fcn.0040d799
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
mov dword [esp + 0x18], eax
jmp 0x405b10
mov eax, dword [ebx]
jmp 0x405bb4
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x406190
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41b9f0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x4261d0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [ebp - 4], ecx
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x14], ecx
cmp eax, ecx
jne 0x4061e2
push 0x424424
lea ecx, [ebp - 0x18]
push ecx
mov dword [ebp - 0x18], str.connection_failed...
call fcn.0040ee2b
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
push edx
push 0x64
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x406226
push 0x424424
lea edx, [ebp - 0x1c]
push edx
mov dword [ebp - 0x1c], str.response_failed...
call fcn.0040ee2b
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0xc]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [esi + 0xc], 0
mov eax, 0x406226
ret
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408030
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esi + 0x2c]
push edi
lea esp, [esp]
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea edx, [ecx + ebp - 0x106]
mov dword [esp + 0xc], edi
cmp eax, edx
jb 0x4080c0
mov eax, dword [esi + 0x38]
push ebp
lea ecx, [eax + ebp]
push ecx
push eax
call fcn.004101a0
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x44]
sub dword [esi + 0x70], ebp
sub dword [esi + 0x6c], ebp
add esp, 0xc
sub dword [esi + 0x5c], ebp
lea ecx, [eax + edx*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x40808f
sub eax, ebp
jmp 0x408091
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x408080
mov ecx, dword [esi + 0x40]
mov edx, ebp
lea ecx, [ecx + ebp*2]
movzx eax, word [ecx - 2]
sub ecx, 2
cmp eax, ebp
jb 0x4080b0
sub eax, ebp
jmp 0x4080b2
xor eax, eax
sub edx, 1
mov word [ecx], ax
jne 0x4080a1
add edi, ebp
mov dword [esp + 0xc], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x40817a
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
mov eax, dword [edi + 4]
add edx, dword [esi + 0x38]
mov ecx, dword [esp + 0xc]
mov ebx, eax
mov dword [esp + 0x10], edx
cmp ebx, ecx
jbe 0x4080e8
mov ebx, ecx
test ebx, ebx
je 0x40813c
sub eax, ebx
mov dword [edi + 4], eax
mov eax, dword [edi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x40810a
mov edx, dword [edi]
mov ecx, dword [edi + 0x30]
mov eax, ebx
call fcn.00406d70
jmp 0x408123
cmp eax, 2
jne 0x40812a
mov ecx, dword [edi]
mov eax, dword [edi + 0x30]
test ecx, ecx
jne 0x40811c
xor eax, eax
jmp 0x408127
mov edx, ebx
call fcn.00406fd0
mov edx, dword [esp + 0x10]
mov dword [edi + 0x30], eax
mov ecx, dword [edi]
push ebx
push ecx
push edx
call fcn.004101a0
add dword [edi], ebx
add esp, 0xc
add dword [edi + 8], ebx
add dword [esi + 0x74], ebx
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x408166
mov eax, dword [esi + 0x38]
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
add edx, eax
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x40817a
mov edx, dword [esi]
cmp dword [edx + 4], 0
jne 0x408040
pop edi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40ac50
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp dword [esi + 0x4090], 0
je 0x40acff
cmp dword [esi + 0x6c], 0
jbe 0x40acff
push ebx
push ebp
mov ebp, 0xffffff78
push edi
lea edi, [esi + 0x88]
sub ebp, esi
jmp 0x40ac80
movzx ecx, byte [edi]
mov eax, dword [esi + 0x4094]
mov ebx, dword [esi + 0x40a0]
xor ecx, eax
mov edx, dword [esi + 0x409c]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x4098]
mov dword [esi + 0x4094], ecx
mov ecx, dword [esi + 0x409c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebx + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x409c], ecx
shr eax, 8
xor byte [edi], al
inc edi
lea ecx, [edi + ebp]
cmp ecx, dword [esi + 0x6c]
jb 0x40ac80
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
je 0x40ad2a
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x40b900
Capabilities:
Hash data with md5

Disassembly:
xor ecx, ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret

Function at 0x40d217
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4261d0]
jne 0x40d221
repz ret
jmp fcn.0040f53c

Function at 0x418fe6
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.0040f7ba
and dword [ebp - 4], 0
cmp dword [0x428e00], 0
mov ebx, eax
jne 0x419097
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x419148
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x419148
push eax
call fcn.0040f748
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x428e00], eax
call esi
push eax
call fcn.0040f748
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x428e04], eax
call esi
push eax
call fcn.0040f748
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x428e08], eax
call esi
push eax
call fcn.0040f748
pop ecx
mov dword [0x428e10], eax
test eax, eax
je 0x419097
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040f748
pop ecx
mov dword [0x428e0c], eax
mov eax, dword [0x428e0c]
cmp eax, ebx
je 0x4190ef
cmp dword [0x428e10], ebx
je 0x4190ef
push eax
call fcn.0040f7c3
push dword [0x428e10]
mov esi, eax
call fcn.0040f7c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4190ef
test edi, edi
je 0x4190ef
call esi
test eax, eax
je 0x4190e6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4190e6
test byte [ebp - 0xc], 1
jne 0x4190ef
or dword [ebp + 0x10], 0x200000
jmp 0x419128
mov eax, dword [0x428e04]
cmp eax, ebx
je 0x419128
push eax
call fcn.0040f7c3
pop ecx
test eax, eax
je 0x419128
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x419128
mov eax, dword [0x428e08]
cmp eax, ebx
je 0x419128
push eax
call fcn.0040f7c3
pop ecx
test eax, eax
je 0x419128
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x428e00]
call fcn.0040f7c3
pop ecx
test eax, eax
je 0x419148
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41914a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10003260
Capabilities:
Set registry value

Disassembly:
sub esp, 0x234
mov eax, dword [0x1003d300]
xor eax, esp
mov dword [esp + 0x22c], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [esp + 0x3a]
push ecx
mov edi, edx
mov word [esp + 0x3c], ax
call fcn.1001d7d0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [esp + 0x1a]
movzx ecx, word [esp + 0x16]
movzx edx, word [esp + 0x14]
push eax
push ecx
push edx
push str._04d__02d__02d
lea eax, [esp + 0x40]
push 0x104
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea ecx, [esp + 0x48]
push ecx
push str.Softwareprojonepodlp_rptcache_rptstore_s
lea esi, [esp + 0x34]
call fcn.100187a6
mov ebp, 8
add esp, 0x20
cmp dword [edi + 0x18], ebp
jb 0x100032ed
mov edi, dword [edi + 4]
jmp 0x100032f0
add edi, 4
cmp dword [ebx + 0x18], ebp
jb 0x100032fa
mov ebx, dword [ebx + 4]
jmp 0x100032fd
add ebx, 4
cmp dword [eax + 0x18], ebp
jb 0x10003307
mov esi, dword [eax + 4]
jmp 0x1000330a
lea esi, [eax + 4]
test edi, edi
je 0x10003317
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
jmp 0x10003319
xor eax, eax
lea edx, [eax + eax + 2]
push edx
push edi
push 1
push ebx
push esi
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
cmp dword [esp + 0x2c], ebp
jb 0x10003341
mov eax, dword [esp + 0x18]
push eax
call fcn.1001aa0a
add esp, 4
mov ecx, dword [esp + 0x23c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1001a9d1
add esp, 0x234
ret
Function at 0x100039f0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x100321f2
mov eax, dword fs:[0]
push eax
sub esp, 0xfc
mov eax, dword [0x1003d300]
xor eax, esp
mov dword [esp + 0xf4], eax
push ebx
push esi
push edi
mov eax, dword [0x1003d300]
xor eax, esp
push eax
lea eax, [esp + 0x10c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x11c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
and dword [esp + 0x24], 0xfffffe00
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
push eax
lea esi, [esp + 0x3c]
mov dword [esp + 0x118], 1
call fcn.100016e0
add esp, 4
mov esi, eax
lea eax, [esp + 0x54]
mov byte [esp + 0x114], 2
push eax
mov dword [esp + 0x1c], 1
call fcn.10009395
mov ecx, 3
mov dword [esp + 0x114], ecx
mov dword [esp + 0x18], ecx
lea ecx, [esp + 0x1c]
push ecx
push esi
push eax
call fcn.10009404
test al, al
je 0x10003aaa
cmp byte [esp + 0x24], 7
mov byte [esp + 0x17], bl
je 0x10003aaf
mov byte [esp + 0x17], 1
lea edi, [esp + 0x54]
call fcn.10003960
mov esi, 0x10
mov dword [esp + 0x114], 1
cmp dword [esp + 0x50], esi
jb 0x10003adb
mov edx, dword [esp + 0x3c]
push edx
call fcn.1001aa0a
add esp, 4
cmp byte [esp + 0x17], bl
jne 0x10003be1
push str.attachment
lea eax, [esp + 0x20]
push eax
mov ecx, 0x10035a42
call fcn.1000d7f2
cmp byte [eax + 8], 4
jne 0x10003be1
push str.attachment
lea ecx, [esp + 0x20]
push ecx
mov ecx, 0x10035a42
call fcn.1000d7f2
push eax
lea ecx, [esp + 0x3c]
call fcn.1000cd1a
push eax
lea ecx, [esp + 0xec]
mov byte [esp + 0x118], 4
call fcn.10001660
add esp, 4
mov byte [esp + 0x114], 6
cmp dword [esp + 0x50], esi
jb 0x10003b54
mov edx, dword [esp + 0x3c]
push edx
call fcn.1001aa0a
add esp, 4
mov eax, dword [esp + 0xec]
mov esi, 8
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x100], esi
jae 0x10003b80
lea eax, [esp + 0xec]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 0xec]
cmp dword [esp + 0x100], esi
jae 0x10003b9e
lea eax, [esp + 0xec]
push eax
push 0x10035a60
call fcn.10016669
add esp, 8
cmp dword [esp + 0x100], esi
jb 0x10003bc5
mov eax, dword [esp + 0xec]
push eax
call fcn.1001aa0a
add esp, 4
xor ecx, ecx
mov dword [esp + 0x100], 7
mov dword [esp + 0xfc], ebx
mov word [esp + 0xec], cx
lea esi, [esp + 0x1c]
mov dword [esp + 0x114], 0xffffffff
call fcn.1000cb2c
mov ecx, dword [esp + 0x10c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf4]
xor ecx, esp
call fcn.1001a9d1
add esp, 0x108
ret
Function at 0x100050f0
Capabilities:
Create thread
Delete registry value
Set registry value

Disassembly:
mov eax, 0x1010
call fcn.1002c1d0
mov eax, dword [0x1003d300]
xor eax, esp
mov dword [esp + 0x1008], eax
push ebx
push esi
push edi
push 4
lea eax, [esp + 0x10]
push eax
push 4
push 0x10035bf0
push str.Softwareprojonepodlp_rptcachependings_
push 0x80000002
mov dword [esp + 0x24], 1
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 0x10035bf0
push str.Softwareprojonepodlp_rptcachependings_
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
call fcn.10018732
cmp dword [0x1003ec94], 0
je 0x10005234
mov edi, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
push str._PendingFetchThread
push 0x158
push str.._rptcache.cpp
push str._s._d:_s
lea ecx, [esp + 0x20]
push 0x800
push ecx
mov dword [0x1003ec94], 0
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
add esp, 0x18
lea edx, [esp + 0xc]
push edx
push 0
push 0
push 0x100042d0
push 0
push 0
mov dword [esp + 0x24], 0
call ebx
mov esi, eax
test esi, esi
je 0x100051ca
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
push ecx
push str.thread__d_created:__s
call fcn.10016510
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str._StockReportThread
push 0x159
push str.._rptcache.cpp
push str._s._d:_s
lea edx, [esp + 0x20]
push 0x800
push edx
call edi
add esp, 0x18
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x10004f00
push 0
push 0
mov dword [esp + 0x24], 0
call ebx
mov esi, eax
test esi, esi
je 0x1000522d
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push edx
push str.thread__d_created:__s
call fcn.10016510
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x1014]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1001a9d1
add esp, 0x1010
ret

Function at 0x10005250
Capabilities:
Check if file exists
Delete directory
Delete registry key

Disassembly:
sub esp, 0x214
mov eax, dword [0x1003d300]
xor eax, esp
mov dword [esp + 0x20c], eax
push str.Softwareprojonepodlp_rptcache_
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xa]
push ecx
mov word [esp + 0xc], ax
call fcn.1001d7d0
add esp, 0xc
lea ecx, [esp]
call fcn.1001a01a
test eax, eax
je 0x100052d6
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
je 0x100052d6
push 0
push 0x100182f1
push 0
push 0x100182b9
push 1
lea eax, [esp + 0x14]
push eax
call fcn.10017d65
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea edx, [esp]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.1001a9d1
add esp, 0x214
ret
Function at 0x100052f0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x10032652
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push ebx
push esi
mov eax, dword [0x1003d300]
xor eax, esp
push eax
lea eax, [esp + 0x58]
mov dword fs:[0], eax
mov esi, ecx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x20]
push edx
push str.online
push str.Softwareprojonepodlp_
xor ebx, ebx
mov dword [esp + 0x28], ebx
push 0x80000002
mov dword [esp + 0x2c], 4
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
test eax, eax
jne 0x1000535a
cmp dword [esp + 0x18], 4
jne 0x1000535a
cmp dword [esp + 0x1c], ebx
jne 0x1000536e
xor al, al
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x58
ret
mov byte [esp + 0x13], bl
test esi, esi
je 0x100053e9
mov eax, esi
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
lea edx, [eax + 1]
jmp 0x10005390
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10005390
sub eax, edx
push eax
push esi
lea ecx, [esp + 0x28]
call fcn.10006850
lea eax, [esp + 0x20]
mov dword [esp + 0x60], 0
mov esi, 1
push eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x18], esi
call fcn.10001660
add esp, 4
mov dword [esp + 0x60], esi
mov ebx, 3
push eax
lea ecx, [esp + 0x17]
mov dword [esp + 0x18], ebx
call fcn.10003510
add esp, 4
test eax, eax
setne byte [esp + 0x13]
jmp 0x100053ed
mov byte [esp + 0x13], bl
test bl, 2
je 0x10005420
and ebx, 0xfffffffd
cmp dword [esp + 0x54], 8
jb 0x10005409
mov ecx, dword [esp + 0x40]
push ecx
call fcn.1001aa0a
add esp, 4
xor edx, edx
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], 0
mov word [esp + 0x40], dx
test bl, 1
je 0x10005439
cmp dword [esp + 0x38], 0x10
jb 0x10005439
mov eax, dword [esp + 0x24]
push eax
call fcn.1001aa0a
add esp, 4
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x58]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x58
ret