joyce8/EMBER2024-capa huggingface dataset:
Function at 0x412490
Capabilities:
Query remote server for available data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4313a8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x44700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004026f0
mov ecx, eax
test ecx, ecx
jne 0x4124cf
push 0x80004005
call fcn.00402be0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x24]
push dword [ebp + 8]
cmp dword [eax - 0xc], 0
jne 0x412500
lea eax, [ebp - 0x10]
push 0x442b04
push eax
call fcn.00407a40
add esp, 0xc
jmp 0x412512
push eax
lea eax, [ebp - 0x10]
push str.__s__s
push eax
call fcn.00407a40
add esp, 0x10
mov esi, dword [ebp - 0x10]
cmp dword [esi - 0xc], 0
jl 0x41254a
push 0x442b1c
push esi
call fcn.0041ad04
add esp, 8
test eax, eax
je 0x41254a
sub eax, esi
sar eax, 1
cmp eax, 0xffffffff
jle 0x41254a
push 0x442898
push 0x442b1c
lea ecx, [ebp - 0x10]
call fcn.004048a0
jmp 0x412512
cmp dword [edi + 0x10], 3
mov ecx, 0x80008000
push 0
mov eax, 0x80808000
cmovne eax, ecx
push eax
push 0
push 0
push 0
push esi
push 0
push dword [edi + 0x18]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [edi + 0x1c], eax
test eax, eax
jne 0x4125a5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
lea ecx, [edi + 0x30]
mov dword [edi + 0x28], eax
push ecx
push 0x400
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
xor bl, bl
jmp 0x412646
cmp byte [edi + 0x1838], 0
je 0x4125e6
lea ecx, [ebp - 0x10]
mov dword [ebp + 8], 0
push ecx
lea ecx, [ebp + 8]
mov dword [ebp - 0x10], 4
push ecx
push 0x1f
push eax
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
push dword [ebp - 0x10]
or dword [ebp + 8], 0xf180
lea eax, [ebp + 8]
push eax
push 0x1f
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0
push 0
push 0
push 0
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x412610
push 0
push 0
lea eax, [ebp - 0x14]
push eax
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
test eax, eax
jne 0x412644
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x400
lea ecx, [edi + 0x30]
mov dword [edi + 0x28], eax
push ecx
push 0x400
push eax
push 0
push 0x1200
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [edi + 0x1c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor bl, bl
jmp 0x412646
mov bl, 1
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x412665
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x412e30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [esi], 0
mov eax, edi
sub eax, dword [esi]
push eax
mov eax, dword [ebp - 4]
add eax, dword [esi]
push eax
push dword [ebx + 0x14]
call fcn.0042da7e
add esp, 0xc
test eax, eax
jle 0x412e6a
add dword [esi], eax
cmp dword [esi], edi
jb 0x412e48
test eax, eax
jns 0x412e90
call fcn.0041d80a
push dword [eax]
call fcn.0042ff9b
push eax
or edx, 0xffffffff
mov ecx, ebx
call fcn.00412d60
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test eax, eax
jne 0x412e9b
mov dword [ebx + 0x40], 1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x413720
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x41372b
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.00413740
Function at 0x42ed20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x24
mov edx, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov eax, dword [edx + 0x78]
mov ebx, dword [edx + 0x8c]
cmp eax, ebx
mov eax, dword [edx + 0x34]
mov ebx, dword [edx + 0x7c]
jl 0x42ed45
shr ebx, 2
dec ebx
shl ebx, 0x10
or ebx, eax
mov dword [esp], ebx
mov eax, dword [edx + 0x90]
mov ebx, dword [edx + 0x74]
cmp ebx, eax
jl 0x42ed5d
mov ebx, eax
mov dword [esp + 0x18], ebx
mov esi, dword [edx + 0x38]
mov dword [esp + 4], esi
mov ebp, dword [edx + 0x6c]
lea edi, [ebp + esi]
mov dword [esp + 0x20], edi
mov eax, edi
neg eax
and eax, 3
mov dword [esp + 0x14], eax
mov eax, dword [edx + 0x2c]
sub eax, 0x106
sub ebp, eax
jg 0x42ed8c
xor ebp, ebp
mov eax, dword [edx + 0x78]
mov dword [esp + 0x1c], eax
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [edi]
mov dword [esp + 0x10], ebx
movzx ebx, word [eax + edi - 1]
mov dword [esp + 0xc], ebx
mov edi, dword [edx + 0x40]
mov edx, dword [esp]
jmp 0x42edce
and ecx, edx
movzx ecx, word [edi + ecx*2]
cmp ecx, ebp
jbe 0x42eea2
sub edx, 0x10000
js 0x42eea2
movzx eax, word [ecx + esi - 1]
cmp eax, ebx
jne 0x42edb4
mov eax, dword [esp + 4]
movzx eax, word [ecx + eax]
cmp eax, dword [esp + 0x10]
jne 0x42edb4
mov dword [esp], edx
mov esi, dword [esp + 4]
mov edi, dword [esp + 0x20]
add esi, ecx
mov eax, dword [esp + 0x14]
mov edx, 0xfffffef8
lea edi, [eax + edi + 0x108]
lea esi, [eax + esi + 0x108]
mov eax, dword [edx + esi]
xor eax, dword [edx + edi]
jne 0x42ee25
mov eax, dword [edx + esi + 4]
xor eax, dword [edx + edi + 4]
jne 0x42ee22
add edx, 8
jne 0x42ee09
jmp 0x42ee93
add edx, 4
test eax, 0xffff
jne 0x42ee32
add edx, 2
shr eax, 0x10
sub al, 1
adc edx, 0
lea eax, [edx + edi]
mov edi, dword [esp + 0x20]
sub eax, edi
cmp eax, 0x102
jge 0x42ee93
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
cmp eax, ebx
jg 0x42ee66
mov esi, dword [esp + 8]
mov edi, dword [edx + 0x40]
mov ebx, dword [esp + 0xc]
mov edx, dword [esp]
jmp 0x42edb4
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x70], ecx
cmp eax, ebx
jge 0x42eea2
mov esi, dword [esp + 4]
add esi, eax
mov dword [esp + 8], esi
movzx ebx, word [eax + edi - 1]
mov edi, dword [edx + 0x40]
mov dword [esp + 0xc], ebx
mov edx, dword [esp]
jmp 0x42edb4
mov edx, dword [esp + 0x38]
mov dword [esp + 0x1c], 0x102
mov dword [edx + 0x70], ecx
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x1c]
mov eax, dword [edx + 0x74]
cmp ebx, eax
jg 0x42eeb3
mov eax, ebx
add esp, 0x24
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x408f16
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [eax + 0x1b0], ebx
jne 0x408f67
cmp byte [eax + 0x1cd], bl
jne 0x408f67
lea eax, [ebp - 4]
push eax
push 0x408f6c
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], ebx
je 0x408f67
push dword [ebp - 4]
push str.App::DetectSameInstallerRunning_735
push str._s__hwnd0x_p
push ebx
call fcn.0043a6e3
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov al, 1
jmp 0x408f69
xor al, al
pop ebx
leave
ret
Function at 0x410219
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, eax
push edi
add esi, 0x2c4
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov edi, dword [esi + 0x1c]
jmp 0x41023d
mov eax, dword [edi]
push dword [eax + 0x38]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
add edi, 4
cmp edi, dword [esi + 0x20]
jne 0x41022f
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop edi
pop esi
ret

Function at 0x411f54
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x45e249
call fcn.0044b154
sub esp, 0x60
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1c4], bl
mov dword [ebp - 0x10], esp
je 0x41200d
push 0x468d4a
lea ecx, [ebp - 0x24]
call fcn.0043c5d0
lea eax, [ebp - 0x24]
push eax
push str.mobileUrl
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0x220]
mov byte [ebp - 4], 1
call fcn.0043f5c0
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0043e1a0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.0043eb50
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.0043eb50
cmp dword [ebp - 0x3c], ebx
je 0x411ff8
lea ecx, [ebp - 0x50]
call fcn.004283b8
cmp al, bl
jne 0x411ff8
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x411fe7
lea eax, [ebp - 0x4c]
push 1
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push 3
pop eax
mov ecx, esi
call fcn.00410d85
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.004192fd
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x419c3f
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
push 4
push 0
push dword [esp + 0x18]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 0xc
Function at 0x41b466
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push esi
push edi
mov esi, str._windir_SysWOW64
lea edi, [ebp - 0x104]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0x3c
movsw word es:[edi], word [esi]
pop ecx
xor eax, eax
lea edi, [ebp - 0xf2]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x104
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHELL32.dll_DoEnvironmentSubstA]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
and eax, 0x20
pop edi
add eax, 0x20
pop esi
leave
ret

Function at 0x41b4be
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x45c147
call fcn.0044b154
sub esp, 0x23c
push ebx
push esi
push edi
push 0x3f
pop ecx
mov esi, dword [sym.imp.KERNEL32.DLL_GetLocaleInfoA]
and dword [ebp - 0x10], 0
xor eax, eax
mov byte [ebp - 0x148], 0
lea edi, [ebp - 0x147]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x3f
pop ecx
xor eax, eax
mov byte [ebp - 0x248], 0
lea edi, [ebp - 0x247]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, 0xff
push ebx
lea eax, [ebp - 0x148]
push eax
push 0x59
mov edi, 0x400
push edi
call esi
push ebx
lea eax, [ebp - 0x248]
push eax
push 0x5a
push edi
call esi
lea eax, [ebp - 0x148]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00419fe3
push 0x469e50
push eax
lea eax, [ebp - 0x48]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0041691c
lea ecx, [ebp - 0x248]
push ecx
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0041691c
add esp, 0x18
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.004192fd
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.004192fd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41b58d
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x45b9e7
call fcn.0044b154
sub esp, 0x2c
push ebx
push edi
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov edi, eax
xor ebx, ebx
cmp edi, ebx
mov dword [ebp - 0x1c], edi
jne 0x41b5b9
xor al, al
jmp 0x41b654
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.GetUserGeoID
push edi
call esi
push str.GetGeoInfoA
push edi
mov dword [ebp - 0x14], eax
call esi
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
je 0x41b639
cmp eax, ebx
je 0x41b639
push 0x10
call dword [ebp - 0x14]
mov esi, eax
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.00446e00
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.00418bb2
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.004192fd
xor eax, eax
mov byte [ebp - 0x10], bl
lea edi, [ebp - 0xf]
stosw word es:[edi], ax
call dword [sym.imp.KERNEL32.DLL_GetUserDefaultLangID]
push eax
push 3
lea eax, [ebp - 0x10]
push eax
push 4
push esi
call dword [ebp - 0x18]
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x10]
push eax
call fcn.00419a13
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp - 0x14], ebx
pop esi
je 0x41b652
cmp dword [ebp - 0x18], ebx
je 0x41b652
xor eax, eax
inc eax
jmp 0x41b654
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41bd3c
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x45cf32
call fcn.0044b154
sub esp, 0x48
push ebx
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
call sub.iphlpapi.dll_GetAdaptersInfo
cmp dword [ebp - 0x10], ebx
jne 0x41bd73
mov ecx, dword [ebp + 8]
push 0x468d4a
call fcn.00419fe3
jmp 0x41be5d
push esi
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.00418c41
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call fcn.00448b69
mov esi, eax
pop ecx
lea eax, [ebp - 0x10]
push eax
push esi
mov dword [ebp - 0x14], esi
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x41be21
cmp esi, ebx
je 0x41be21
push edi
cmp dword [esi + 0x190], ebx
je 0x41be1a
cmp dword [ebp - 0x1c], ebx
je 0x41bdc2
push 0x46ac78
lea ecx, [ebp - 0x30]
call fcn.00413613
cmp dword [esi + 0x190], ebx
jbe 0x41be1a
push 8
pop ecx
xor eax, eax
mov byte [ebp - 0x54], 0
lea edi, [ebp - 0x53]
rep stosd dword es:[edi], eax
movzx eax, byte [esi + ebx + 0x194]
push eax
lea eax, [ebp - 0x54]
push str._02X
push eax
call fcn.0044a185
add esp, 0xc
test ebx, ebx
jbe 0x41be03
push 0x46c4fc
lea ecx, [ebp - 0x30]
call fcn.00413613
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x30]
call fcn.00413613
inc ebx
cmp ebx, dword [esi + 0x190]
jb 0x41bdca
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x41bda8
pop edi
push dword [ebp - 0x14]
call fcn.00448b7b
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
pop ecx
pop esi
jae 0x41be37
lea eax, [ebp - 0x2c]
push eax
push str.MACS_____s
push ebx
call fcn.0043a6e3
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call fcn.0041a15f
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.004192fd
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41c939
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x45f2d0
call fcn.0044b154
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
jb 0x41c947
mov eax, dword [esi + 4]
jmp 0x41c94a
lea eax, [esi + 4]
push dword [ebp + 8]
push eax
push str.CompInfo::TestFileExists_532
push str._s__f_s_isDir_d
push 0
call fcn.0043a6e3
add esp, 0x14
push esi
lea ecx, [ebp - 0x28]
call fcn.0041a15f
and dword [ebp - 4], 0
lea ebx, [ebp - 0x28]
call fcn.0041f4f3
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x41c983
lea eax, [ebp - 0x24]
push eax
push str.__fullpath_s
xor esi, esi
push esi
call fcn.0043a6e3
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
jae 0x41c9a0
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41c9af
xor bl, bl
jmp 0x41c9dd
cmp dword [ebp + 8], esi
jge 0x41c9b8
mov bl, 1
jmp 0x41c9dd
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x41c9c4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x41c9d7
cmp dword [ebp + 8], esi
setne bl
jmp 0x41c9dd
cmp dword [ebp + 8], esi
sete bl
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.004192fd
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41cf59
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [esi]
and dword [esi], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push 0
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x41cfac
cmp dword [ebp + 0xc], 1
je 0x41cf8e
cmp dword [ebp + 0xc], 2
jne 0x41cfa0
test edi, edi
mov eax, dword [ebp - 4]
je 0x41cfa8
test eax, eax
je 0x41cfa5
cmp byte [eax + edi - 1], 0
je 0x41cfa8
push 0xd
pop eax
jmp 0x41cfac
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x41d1ad
Capabilities:
Link many functions at runtime

Disassembly:
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
push str.sqlite3_libversion_number
push dword [esi + 0x1c]
call edi
push str.sqlite3_open
push dword [esi + 0x1c]
mov dword [esi], eax
call edi
push str.sqlite3_prepare
push dword [esi + 0x1c]
mov dword [esi + 4], eax
call edi
push str.sqlite3_step
push dword [esi + 0x1c]
mov dword [esi + 8], eax
call edi
push str.sqlite3_finalize
push dword [esi + 0x1c]
mov dword [esi + 0xc], eax
call edi
push str.sqlite3_column_text
push dword [esi + 0x1c]
mov dword [esi + 0x14], eax
call edi
push str.sqlite3_close
push dword [esi + 0x1c]
mov dword [esi + 0x10], eax
call edi
xor ecx, ecx
cmp dword [esi], ecx
mov dword [esi + 0x18], eax
pop edi
je 0x41d236
cmp dword [esi + 4], ecx
je 0x41d236
cmp dword [esi + 8], ecx
je 0x41d236
cmp dword [esi + 0xc], ecx
je 0x41d236
cmp dword [esi + 0x14], ecx
je 0x41d236
cmp dword [esi + 0x10], ecx
je 0x41d236
cmp eax, ecx
je 0x41d236
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x41d310
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x93c
push ebx
push edi
push 0xe
mov ebx, eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
push 0x100
lea eax, [ebp - 0x13c]
xor edi, edi
push edi
push eax
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x2c], eax
call fcn.00448970
push 0x800
lea eax, [ebp - 0x93c]
push edi
push eax
mov dword [ebp - 0x28], 0xff
mov dword [ebp - 0x10], eax
call fcn.00448970
mov eax, dword [ebx + 0x14]
add esp, 0x18
cmp dword [ebx + 0x18], 0x10
mov dword [ebp - 0xc], 0x7ff
jb 0x41d379
mov ebx, dword [ebx + 4]
jmp 0x41d37c
add ebx, 4
lea ecx, [ebp - 0x3c]
push ecx
push edi
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x2c]
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.00419a13
push dword [ebp - 0x10]
lea ecx, [esi + 0x20]
call fcn.00419a13
movzx eax, word [ebp - 0x24]
pop edi
mov dword [esi + 0x3c], eax
pop ebx
leave
ret
Function at 0x41daca
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push edi
mov ecx, esi
call fcn.0041d3af
test al, al
jne 0x41dadb
xor eax, eax
pop ecx
ret
push 8
call fcn.00447544
test eax, eax
pop ecx
je 0x41daee
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x41daf0
xor eax, eax
lea ecx, [esp]
push ecx
push 4
push eax
push 0x41db21
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
mov dword [esi + 0x5c], eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
mov eax, dword [esi + 0x5c]
pop ecx
ret
Function at 0x41e09c
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x45dd34
call fcn.0044b154
sub esp, 0x1b4
push ebx
push esi
push edi
mov esi, str.fs::CreateTemp_383
mov dword [ebp - 0x10], esp
push esi
call fcn.00449520
mov dword [ebp - 0x14], eax
push esi
xor ebx, ebx
push 0x46b230
push ebx
mov dword [ebp - 4], ebx
call fcn.0043a6e3
add esp, 0x10
push 0x40
mov byte [ebp - 4], 1
pop ecx
xor eax, eax
mov byte [ebp - 0x1c0], bl
lea edi, [ebp - 0x1bf]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x1c0]
push eax
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
lea eax, [ebp - 0x70]
push eax
call fcn.0041e592
pop ecx
mov esi, eax
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.00419fe3
push 0x46ec8c
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 3
call fcn.0041691c
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 4
call fcn.00416a8f
add esp, 0xc
push 0x46ec90
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 5
call fcn.0041691c
add esp, 0xc
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
add esi, 0x28
push eax
mov ecx, esi
mov byte [ebp - 4], 6
call fcn.00418bb2
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x34]
call fcn.004192fd
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.004192fd
push ebx
push edi
lea ecx, [ebp - 0xbc]
call fcn.004192fd
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.004192fd
push ebx
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.004192fd
cmp dword [esi + 0x18], 0x10
jb 0x41e1c2
mov eax, dword [esi + 4]
jmp 0x41e1c5
lea eax, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x41e2a3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x468d4a
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], eax
call fcn.00419fe3
push str.INVALID_FILENAME
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 7
push dword [0x4844e4]
call fcn.0041b183
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 0x10
jb 0x41e212
mov eax, dword [eax + 4]
jmp 0x41e215
add eax, 4
push eax
lea ecx, [ebp - 0x54]
call fcn.00419fe3
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x54]
mov byte [ebp - 4], 9
mov ecx, dword [ecx]
push eax
lea edi, [ebp - 0x34]
xor eax, eax
call fcn.00408d63
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.004192fd
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.004192fd
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.004192fd
push 0x468d4a
lea ecx, [ebp - 0x70]
call fcn.00419fe3
lea eax, [ebp - 0x70]
push eax
push 2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.0041a005
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x18], 0x10
jb 0x41e287
mov esi, dword [esi + 4]
jmp 0x41e28a
add esi, 4
push dword [ebp - 0x18]
push esi
push str.fs::CreateTemp_failed__temp_s__err_d_
push eax
call fcn.00419950
add esp, 0x10
mov ecx, eax
call fcn.0041a041
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x14]
call fcn.00419c15
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4
Function at 0x41e30b
Capabilities:
Check if file exists
Delete directory
Delete file
Set current directory

Disassembly:
mov eax, 0x45f2be
call fcn.0044b154
sub esp, 0x30
push ebx
push esi
push edi
mov esi, str.fs::ClearTemp_404
mov dword [ebp - 0x10], esp
push esi
call fcn.00449520
mov dword [ebp - 0x18], eax
push esi
xor edi, edi
push 0x46b230
push edi
mov dword [ebp - 4], edi
call fcn.0043a6e3
mov ebx, dword [ebp + 8]
add ebx, 0x44
add esp, 0x10
push ebx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
lea esi, [ebx + 0x18]
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
mov edi, dword [esi + 4]
cmp edi, dword [esi + 8]
je 0x41e39c
cmp dword [edi + 0x18], 0x10
jb 0x41e36d
mov eax, dword [edi + 4]
jmp 0x41e370
lea eax, [edi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x41e394
cmp dword [edi + 0x18], 0x10
jb 0x41e386
mov eax, dword [edi + 4]
jmp 0x41e389
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
test eax, eax
je 0x41e397
inc dword [ebp - 0x14]
add edi, 0x1c
jmp 0x41e35d
mov eax, esi
call fcn.0042995a
push eax
push dword [ebp - 0x14]
xor edi, edi
push str.__remove__d__d_files
push edi
call fcn.0043a6e3
add esp, 0x10
call fcn.00414a72
push ebx
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
cmp byte [ebp + 0xc], 0
jne 0x41e43a
mov esi, dword [ebp + 8]
cmp dword [esi + 0x3c], edi
je 0x41e43a
lea eax, [ebp - 0x3c]
push eax
call fcn.0041ee8b
cmp dword [eax + 0x18], 0x10
pop ecx
jb 0x41e3ea
mov eax, dword [eax + 4]
jmp 0x41e3ed
add eax, 4
push eax
call dword [sym.imp.KERNEL32.DLL_SetCurrentDirectoryA]
push edi
push 1
lea ecx, [ebp - 0x3c]
call fcn.004192fd
add esi, 0x28
cmp dword [esi + 0x18], 0x10
jb 0x41e40d
mov eax, dword [esi + 4]
jmp 0x41e410
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryA]
test eax, eax
jne 0x41e430
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.__cant_remove_temp__err_d
push edi
call fcn.0043a6e3
add esp, 0xc
push 0xffffffffffffffff
push edi
mov ecx, esi
call fcn.00418b41
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x18]
call fcn.00419c15
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8