joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fa70
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x2b000]
push edi
jmp 0x43fa8a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x43fa91
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x43fa80
mov eax, 1
add ebx, ebx
jne 0x43faa3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x43fa98
jne 0x43fab4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43fa98
xor ecx, ecx
sub eax, 3
jb 0x43fac8
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x43fb3a
mov ebp, eax
add ebx, ebx
jne 0x43fad3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x43fae0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43fb04
inc ecx
add ebx, ebx
jne 0x43faf0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43fae5
jne 0x43fb01
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43fae5
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43fb24
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43fb15
jmp 0x43fa86
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43fb24
add edi, ecx
jmp 0x43fa86
pop esi
mov edi, esi
mov ecx, 0x9de
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x43fb42
cmp byte [edi], 6
jne 0x43fb42
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x43fb47
lea edi, [esi + 0x3d000]
mov eax, dword [edi]
or eax, eax
je 0x43fbbf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x547f8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x548d8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x43fb74
mov ecx, edi
jns 0x43fba3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x548e0]
or eax, eax
je 0x43fbb9
mov dword [ebx], eax
add ebx, 4
jmp 0x43fb91
call dword [esi + 0x548dc]
mov ebp, dword [esi + 0x548e4]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x17f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x43fbf3
sub esp, 0xffffff80
jmp 0x41876f
Function at 0x407338
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x4653e4
call fcn.00452544
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [edi], 0x4722e4
mov dword [edi + 4], 0x4722d4
mov dword [edi + 8], 0x4722c8
mov dword [edi + 0xc], 0x4722b4
and dword [ebp - 4], 0
lea ebx, [edi + 0x2cc]
push ebx
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov byte [ebp - 4], 0x14
mov ecx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x20]
cmp ecx, eax
mov dword [ebp - 0x10], ecx
je 0x4073ce
jmp 0x40738f
mov ecx, dword [ebp - 0x10]
mov esi, dword [ecx]
mov eax, dword [esi + 0x38]
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
je 0x4073b6
push dword [esi + 0x3c]
push str.__offer_job__d_still_live_
push 1
call fcn.00441366
add esp, 0xc
call fcn.00407538
push esi
call fcn.0044f86e
add dword [ebp - 0x10], 4
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebx + 0x20]
pop ecx
jne 0x40738c
lea esi, [ebx + 0x18]
call fcn.0041693a
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
mov ebx, dword [sym.imp.KERNEL32.DLL_DeleteCriticalSection]
and dword [0x48f700], 0
lea eax, [edi + 0x3ac]
push eax
call ebx
lea eax, [edi + 0x380]
push eax
mov byte [ebp - 4], 0x11
call fcn.00415779
lea eax, [edi + 0x358]
push eax
mov byte [ebp - 4], 0x10
call fcn.00415779
lea ecx, [edi + 0x348]
mov byte [ebp - 4], 0xf
call fcn.00445920
mov byte [ebp - 4], 0xe
mov eax, dword [edi + 0x344]
test eax, eax
je 0x407436
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea esi, [edi + 0x330]
call fcn.00416b91
lea esi, [edi + 0x320]
call fcn.00416b91
lea eax, [edi + 0x2f8]
push eax
mov byte [ebp - 4], 0xb
call fcn.00415779
lea esi, [edi + 0x2e4]
call fcn.0041693a
lea eax, [edi + 0x2cc]
push eax
call ebx
lea ecx, [edi + 0x2b8]
mov byte [ebp - 4], 9
call fcn.00445920
lea esi, [edi + 0x280]
call fcn.004158a4
xor esi, esi
push esi
push 1
lea ecx, [edi + 0x25c]
call fcn.0041b05c
lea ecx, [edi + 0x248]
mov byte [ebp - 4], 6
call fcn.00445920
lea ecx, [edi + 0x238]
mov byte [ebp - 4], 5
call fcn.00445920
lea ecx, [edi + 0x228]
mov byte [ebp - 4], 4
call fcn.00445920
lea ecx, [edi + 0x218]
mov byte [ebp - 4], 3
call fcn.00445920
push esi
push 1
lea ecx, [edi + 0x1f4]
call fcn.0041b05c
push esi
push 1
lea ecx, [edi + 0x1d8]
call fcn.0041b05c
lea eax, [edi + 0x78]
push eax
mov byte [ebp - 4], 0
call fcn.004072a7
or dword [ebp - 4], 0xffffffff
lea eax, [edi + 0x10]
call fcn.00430ee9
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x409eb5
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [eax + 0x1b8], ebx
jne 0x409f06
cmp byte [eax + 0x1d5], bl
jne 0x409f06
lea eax, [ebp - 4]
push eax
push 0x409f0b
mov dword [ebp - 4], ebx
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], ebx
je 0x409f06
push dword [ebp - 4]
push str.App::DetectSameInstallerRunning_773
push str._s__hwnd0x_p
push ebx
call fcn.00441366
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov al, 1
jmp 0x409f08
xor al, al
pop ebx
leave
ret
Function at 0x411f24
Capabilities:
Resume thread

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

Function at 0x413c6b
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x4661e8
call fcn.00452544
sub esp, 0x60
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push edi
mov dword [ebp - 4], ebx
cmp byte [esi + 0x1cc], bl
mov dword [ebp - 0x10], esp
je 0x413d24
push 0x471e5a
lea ecx, [ebp - 0x24]
call fcn.004433a0
lea eax, [ebp - 0x24]
push eax
push str.mobileUrl
lea eax, [ebp - 0x34]
push eax
lea ecx, [esi + 0x228]
mov byte [ebp - 4], 1
call fcn.00446390
lea ecx, [ebp - 0x50]
push ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00444f70
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call fcn.00445920
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.00445920
cmp dword [ebp - 0x3c], ebx
je 0x413d0f
lea ecx, [ebp - 0x50]
call fcn.0042c02d
cmp al, bl
jne 0x413d0f
cmp dword [ebp - 0x38], 0x10
mov eax, dword [ebp - 0x4c]
jae 0x413cfe
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.00412a9c
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.0041b05c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x413e65
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x46619a
call fcn.00452544
sub esp, 0x70
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push dword [ebp + 0xc]
xor ebx, ebx
lea esi, [ebp - 0x7c]
mov dword [ebp - 4], ebx
call fcn.00415838
push ebx
push 0xfde9
mov eax, esi
push eax
lea eax, [ebp - 0x44]
push eax
mov byte [ebp - 4], 1
call fcn.0044d900
add esp, 0x10
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 3
call fcn.00416812
mov eax, dword [ebp - 0x40]
push 0x10
pop edi
cmp dword [ebp - 0x2c], edi
jae 0x413ec0
lea eax, [ebp - 0x40]
push eax
push dword [ebp + 8]
push str.App::OpenLinkInBrowser_3378
push str._s__app_d_link_s_
push ebx
call fcn.00441366
add esp, 0x14
cmp dword [ebp - 0x30], ebx
je 0x414048
mov eax, dword [ebp + 8]
sub eax, ebx
je 0x413ef6
dec eax
je 0x413f06
dec eax
je 0x413fb4
jmp 0x414019
lea ecx, [ebp - 0x44]
call fcn.0042c02d
cmp al, bl
jne 0x414048
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], 0xf
call fcn.0041a911
push ebx
lea eax, [ebp - 0x60]
push ebx
push eax
mov byte [ebp - 4], 4
call fcn.00429587
add esp, 0xc
cmp al, bl
je 0x413faa
cmp dword [ebp - 0x4c], ebx
je 0x413faa
push str.__in_new_ff_window
push ebx
call fcn.00441366
pop ecx
pop ecx
push str._new_window__
lea ecx, [ebp - 0x7c]
call fcn.0041be0b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 5
call fcn.0041aaa5
push 0x472840
lea ecx, [ebp - 0x7c]
call fcn.0041532a
cmp dword [ebp - 0x64], edi
mov ecx, dword [ebp - 0x78]
jae 0x413f76
lea ecx, [ebp - 0x78]
cmp dword [ebp - 0x48], edi
mov eax, dword [ebp - 0x5c]
jae 0x413f81
lea eax, [ebp - 0x5c]
push esi
push ebx
push ecx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
push esi
lea ecx, [ebp - 0x7c]
call fcn.0041b05c
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.0041b05c
jmp 0x414048
push ebx
push esi
lea ecx, [ebp - 0x60]
call fcn.0041b05c
push ebx
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], 0xf
call fcn.0041a911
lea eax, [ebp - 0x60]
push eax
mov byte [ebp - 4], 6
call fcn.004294cc
cmp al, bl
pop ecx
je 0x41400b
push str.__in_new_gc_window
push ebx
call fcn.00441366
cmp dword [ebp - 0x2c], edi
pop ecx
pop ecx
mov ecx, dword [ebp - 0x40]
jae 0x413fee
lea ecx, [ebp - 0x40]
cmp dword [ebp - 0x48], edi
mov eax, dword [ebp - 0x5c]
jae 0x413ff9
lea eax, [ebp - 0x5c]
push esi
push ebx
push ecx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
jmp 0x413f9b
push ebx
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 3
call fcn.0041b05c
cmp dword [ebp - 0x2c], edi
mov eax, dword [ebp - 0x40]
jae 0x414024
lea eax, [ebp - 0x40]
push esi
push ebx
push ebx
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jg 0x414048
push eax
push str.__ShellExec_failed:__d
push esi
call fcn.00441366
add esp, 0xc
push ebx
push esi
lea ecx, [ebp - 0x44]
call fcn.0041b05c
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 8
Function at 0x41ba6c
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 0x41dab7
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 0x41db0f
Capabilities:
Get geographical location

Disassembly:
mov eax, 0x463ece
call fcn.00452544
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.0041be0b
push 0x472fb8
push eax
lea eax, [ebp - 0x48]
xor esi, esi
push eax
mov dword [ebp - 4], esi
call fcn.0041867b
lea ecx, [ebp - 0x248]
push ecx
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0041867b
add esp, 0x18
push esi
push 1
lea ecx, [ebp - 0x48]
call fcn.0041b05c
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.0041b05c
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 0x41dbde
Capabilities:
Identify system language via api

Disassembly:
mov eax, 0x463717
call fcn.00452544
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 0x41dc0a
xor al, al
jmp 0x41dca5
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 0x41dc8a
cmp eax, ebx
je 0x41dc8a
push 0x10
call dword [ebp - 0x14]
mov esi, eax
lea eax, [ebp - 0x38]
push esi
push eax
call fcn.0044dbd0
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0xffffffffffffffff
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0041ab6e
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x38]
call fcn.0041b05c
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.0041b834
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
cmp dword [ebp - 0x14], ebx
pop esi
je 0x41dca3
cmp dword [ebp - 0x18], ebx
je 0x41dca3
xor eax, eax
inc eax
jmp 0x41dca5
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41e38d
Capabilities:
Get mac address on windows

Disassembly:
mov eax, 0x464c70
call fcn.00452544
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 0x41e3c4
mov ecx, dword [ebp + 8]
push 0x471e5a
call fcn.0041be0b
jmp 0x41e4ae
push esi
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.0041a911
mov dword [ebp - 4], ebx
push dword [ebp - 0x10]
call fcn.0044ffb9
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 0x41e472
cmp esi, ebx
je 0x41e472
push edi
cmp dword [esi + 0x190], ebx
je 0x41e46b
cmp dword [ebp - 0x1c], ebx
je 0x41e413
push 0x473fd0
lea ecx, [ebp - 0x30]
call fcn.0041532a
cmp dword [esi + 0x190], ebx
jbe 0x41e46b
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.004515d5
add esp, 0xc
test ebx, ebx
jbe 0x41e454
push 0x475b7c
lea ecx, [ebp - 0x30]
call fcn.0041532a
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x30]
call fcn.0041532a
inc ebx
cmp ebx, dword [esi + 0x190]
jb 0x41e41b
xor ebx, ebx
mov esi, dword [esi]
cmp esi, ebx
jne 0x41e3f9
pop edi
push dword [ebp - 0x14]
call fcn.0044ffcb
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
pop ecx
pop esi
jae 0x41e488
lea eax, [ebp - 0x2c]
push eax
push str.MACS_____s
push ebx
call fcn.00441366
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
call fcn.0041bf87
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.0041b05c
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x41ef8a
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x467434
call fcn.00452544
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0x18], 0x10
jb 0x41ef98
mov eax, dword [esi + 4]
jmp 0x41ef9b
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.00441366
add esp, 0x14
push esi
lea ecx, [ebp - 0x28]
call fcn.0041bf87
and dword [ebp - 4], 0
push 3
lea ebx, [ebp - 0x28]
call fcn.0042263b
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
pop ecx
jae 0x41efd7
lea eax, [ebp - 0x24]
push eax
push str.__fullpath_s
xor esi, esi
push esi
call fcn.00441366
mov eax, dword [ebp - 0x24]
add esp, 0xc
cmp dword [ebp - 0x10], 0x10
jae 0x41eff4
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x41f003
xor bl, bl
jmp 0x41f031
cmp dword [ebp + 8], esi
jge 0x41f00c
mov bl, 1
jmp 0x41f031
cmp dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0x24]
jae 0x41f018
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
test eax, eax
je 0x41f02b
cmp dword [ebp + 8], esi
setne bl
jmp 0x41f031
cmp dword [ebp + 8], esi
sete bl
push esi
push 1
lea ecx, [ebp - 0x28]
call fcn.0041b05c
mov ecx, dword [ebp - 0xc]
pop esi
mov al, bl
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41f507
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 0x41f55a
cmp dword [ebp + 0xc], 1
je 0x41f53c
cmp dword [ebp + 0xc], 2
jne 0x41f54e
test edi, edi
mov eax, dword [ebp - 4]
je 0x41f556
test eax, eax
je 0x41f553
cmp byte [eax + edi - 1], 0
je 0x41f556
push 0xd
pop eax
jmp 0x41f55a
mov byte [edi], 0
mov dword [esi], eax
xor eax, eax
leave
ret 8

Function at 0x41fff5
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 0x42007e
cmp dword [esi + 4], ecx
je 0x42007e
cmp dword [esi + 8], ecx
je 0x42007e
cmp dword [esi + 0xc], ecx
je 0x42007e
cmp dword [esi + 0x14], ecx
je 0x42007e
cmp dword [esi + 0x10], ecx
je 0x42007e
cmp eax, ecx
je 0x42007e
xor eax, eax
inc eax
ret
xor eax, eax
ret

Function at 0x420158
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.0044fdc0
push 0x800
lea eax, [ebp - 0x93c]
push edi
push eax
mov dword [ebp - 0x28], 0xff
mov dword [ebp - 0x10], eax
call fcn.0044fdc0
mov eax, dword [ebx + 0x14]
add esp, 0x18
cmp dword [ebx + 0x18], 0x10
mov dword [ebp - 0xc], 0x7ff
jb 0x4201c1
mov ebx, dword [ebx + 4]
jmp 0x4201c4
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.0041b834
push dword [ebp - 0x10]
lea ecx, [esi + 0x20]
call fcn.0041b834
movzx eax, word [ebp - 0x24]
pop edi
mov dword [esi + 0x3c], eax
pop ebx
leave
ret
Function at 0x4208e2
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push edi
mov ecx, esi
call fcn.004201f7
test al, al
jne 0x4208f3
xor eax, eax
pop ecx
ret
push 8
call fcn.0044e984
test eax, eax
pop ecx
je 0x420906
mov dword [eax], edi
mov dword [eax + 4], esi
jmp 0x420908
xor eax, eax
lea ecx, [esp]
push ecx
push 4
push eax
push 0x420939
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 0x421067
Capabilities:
Create directory
Get common file path

Disassembly:
mov eax, 0x465c55
call fcn.00452544
sub esp, 0x1b4
push ebx
push esi
push edi
mov esi, str.fs::CreateTemp_412
mov dword [ebp - 0x10], esp
push esi
call fcn.004508dd
mov dword [ebp - 0x14], eax
push esi
xor ebx, ebx
push 0x474efc
push ebx
mov dword [ebp - 4], ebx
call fcn.00441366
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.0042155d
pop ecx
mov esi, eax
lea eax, [ebp - 0x1c0]
push eax
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 2
call fcn.0041be0b
push 0x478664
push eax
lea eax, [ebp - 0xbc]
push eax
mov byte [ebp - 4], 3
call fcn.0041867b
add esp, 0xc
push esi
push eax
lea eax, [ebp - 0x54]
push eax
mov byte [ebp - 4], 4
call fcn.004187fe
add esp, 0xc
push 0x478668
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 5
call fcn.0041867b
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.0041ab6e
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x34]
call fcn.0041b05c
push ebx
push edi
lea ecx, [ebp - 0x54]
call fcn.0041b05c
push ebx
push edi
lea ecx, [ebp - 0xbc]
call fcn.0041b05c
push ebx
push edi
lea ecx, [ebp - 0xa0]
call fcn.0041b05c
push ebx
push edi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.0041b05c
cmp dword [esi + 0x18], 0x10
jb 0x42118d
mov eax, dword [esi + 4]
jmp 0x421190
lea eax, [esi + 4]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryA]
test eax, eax
jne 0x42126e
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0x471e5a
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], eax
call fcn.0041be0b
push str.INVALID_FILENAME
lea eax, [ebp - 0x70]
push eax
mov byte [ebp - 4], 7
push dword [0x48f704]
call fcn.0041d7d4
mov byte [ebp - 4], 8
cmp dword [eax + 0x18], 0x10
jb 0x4211dd
mov eax, dword [eax + 4]
jmp 0x4211e0
add eax, 4
push eax
lea ecx, [ebp - 0x54]
call fcn.0041be0b
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.00409d02
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.0041b05c
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.0041b05c
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0041b05c
push 0x471e5a
lea ecx, [ebp - 0x70]
call fcn.0041be0b
lea eax, [ebp - 0x70]
push eax
push 2
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xa
call fcn.0041be2d
mov byte [ebp - 4], 0xb
cmp dword [esi + 0x18], 0x10
jb 0x421252
mov esi, dword [esi + 4]
jmp 0x421255
add esi, 4
push dword [ebp - 0x18]
push esi
push str.fs::CreateTemp_failed__temp_s__err_d_
push eax
call fcn.0041b692
add esp, 0x10
mov ecx, eax
call fcn.0041be69
or dword [ebp - 4], 0xffffffff
lea esi, [ebp - 0x14]
call fcn.0041ba42
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret 4