joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401a70
Capabilities:
Capture screenshot
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetDC]
push 0
mov esi, eax
call edi
mov ebx, eax
mov eax, dword [esi + 0x38]
push eax
call edi
mov ecx, dword [esi + 4]
lea edi, [esi + 0x14]
push edi
push ecx
mov dword [ebp - 8], eax
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov ecx, dword [esi + 0x2c]
mov edx, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x30]
push eax
push ecx
push edx
call dword [sym.imp.GDI32.dll_CreateCompatibleBitmap]
push eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push 0xcc0020
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [ebp - 4]
push ebx
mov dword [ebp - 0xc], eax
mov eax, dword [esi + 0x30]
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x38]
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
mov eax, dword [esi + 0x30]
push 0xcc0020
push ecx
mov ecx, dword [esi + 0x2c]
push edx
mov edx, dword [esi + 0xa38]
push ebx
push eax
push ecx
push 0
push 0
push edx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [ebp - 4]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
push 0xcc0020
push 0
push 0
push eax
mov eax, dword [edi + 4]
push ecx
mov ecx, dword [edi]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.GDI32.dll_BitBlt]
mov edx, dword [esi + 0x30]
mov eax, dword [esi + 0x2c]
mov ecx, dword [edi + 4]
push edx
mov edx, dword [edi]
push eax
mov eax, dword [esi + 0xa38]
push ecx
push edx
push ebx
push eax
call fcn.00405150
mov ecx, dword [ebp - 8]
mov edx, dword [esi + 4]
mov esi, dword [sym.imp.USER32.dll_ReleaseDC]
push ecx
push edx
call esi
push ebx
push 0
call esi
push 1
push edi
push 0
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, dword [ebp - 0xc]
mov esi, dword [ebp - 4]
push eax
push esi
call dword [sym.imp.GDI32.dll_SelectObject]
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.GDI32.dll_DeleteObject]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401c30
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x40a018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
lea ecx, [ebp - 0x214]
push ecx
push 2
push 0
mov dword [ebp - 0x210], eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x401d19
mov esi, dword [sym.imp.MSVCR100.dll_malloc]
push 0x208
call esi
push 0x208
mov ebx, eax
call esi
mov edx, dword [ebp - 0x214]
add esp, 8
mov esi, eax
push esi
push edx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x401d19
push edi
mov edi, dword [sym.imp.MSVCR100.dll__swprintf]
push str.CH341Programmer
push esi
push str._s_s
push esi
call edi
mov ecx, dword [ebp - 0x210]
add esp, 0x10
push esi
call fcn.00401d30
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x8010
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.SiberiaProg_CH341A.lnk
lea ecx, [ebp - 0x20c]
push ecx
push str._s_s
push esi
call edi
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
mov esi, dword [sym.imp.MSVCR100.dll_free]
call esi
push ebx
call esi
add esp, 8
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004063aa
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.004063aa
mov esp, ebp
pop ebp
ret 4
Function at 0x401fe0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5d8
mov eax, dword [0x40a018]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x3ae]
push ecx
mov word [ebp - 0x3b0], ax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x80
lea edx, [ebp - 0x5b0]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryW]
lea eax, [ebp - 0x5d8]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x5d8]
test eax, eax
je 0x40205c
cmp eax, 6
je 0x402050
xor ecx, ecx
cmp eax, 9
sete cl
mov dword [ebp - 0x5b4], ecx
jmp 0x402066
mov dword [ebp - 0x5b4], 1
jmp 0x402066
mov dword [ebp - 0x5b4], 0
push esi
push edi
xor edx, edx
mov word [ebx], dx
mov ecx, 8
mov esi, str.CH341Programmer
lea edi, [ebp - 0x28]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
mov word [ebp - 0x1a8], cx
lea ecx, [ebp - 0x5b0]
push ecx
mov word [ebp - 0x68], dx
xor eax, eax
lea edx, [ebp - 0x3b0]
movsw word es:[edi], word [esi]
mov esi, dword [sym.imp.MSVCR100.dll__swprintf]
push 0x4074f8
push edx
mov word [ebp - 0xe8], ax
mov word [ebp - 0x128], ax
call esi
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x1a8]
push edx
lea eax, [ebp - 0xe8]
push eax
lea ecx, [ebp - 0x3b0]
push ecx
call dword [sym.imp.MSVCR100.dll__wsplitpath]
add esp, 0x20
cmp dword [ebp - 0x5b4], 1
je 0x4020ff
lea edx, [ebp - 0x28]
push edx
push str.Program_Files
push 0x4074e0
lea eax, [ebp - 0xe8]
push eax
jmp 0x402114
lea ecx, [ebp - 0x28]
push ecx
push str.Program_Files__x86_
push 0x4074e0
lea edx, [ebp - 0xe8]
push edx
push str._s_s_s_s
push ebx
call esi
mov ecx, dword [ebp - 4]
add esp, 0x18
pop edi
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004063aa
mov esp, ebp
pop ebp
ret
Function at 0x402140
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x40a018]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push 0
push edi
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], edx
mov dword [esi], vtable.cSimpleControl.0
mov dword [esi + 0xc], edi
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp - 0x44]
mov dword [esi + 8], eax
xor eax, eax
push eax
push 0xfffffffffffffffa
push edi
mov dword [esi + 4], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x10], eax
mov dword [esi], vtable.cButton.0
mov dword [esi + 0x118], ecx
mov dword [esi + 0x11c], ebx
mov dword [esi + 0x120], 0x16
mov dword [esi + 0x124], 0x5a
call dword [sym.imp.USER32.dll_GetWindowLongW]
mov edx, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x4c]
push eax
mov eax, dword [ebp - 0x44]
push edx
push edi
push 0x16
push 0x5a
push eax
push ebx
push 0x40000000
push ecx
push str.button
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0x80
lea edi, [esi + 0x40]
push 0
push edi
mov dword [esi + 8], eax
call sub.MSVCR100.dll_memset
mov edx, dword [esi + 8]
add esp, 0xc
push 0x40
push edi
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_GetDC]
lea ecx, [ebp - 0x40]
mov edi, eax
push ecx
push edi
call dword [sym.imp.GDI32.dll_GetTextMetricsW]
mov edx, dword [esi + 8]
push edi
push edx
call dword [sym.imp.USER32.dll_ReleaseDC]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x20], ecx
mov ecx, dword [ebp - 4]
mov dword [esi + 0x1c], eax
xor ecx, ebp
mov dword [esi + 0x128], 0
mov eax, esi
pop edi
call fcn.004063aa
mov esp, ebp
pop ebp
ret 8
Function at 0x403050
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp dword [esi + 0x128], 0
je 0x4030b3
cmp dword [esi + 0x120], 0
je 0x4030b9
mov ecx, dword [esi + 0x154]
sub ecx, dword [esi + 0x150]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 1
jbe 0x4030b9
lea ecx, [ebp - 8]
push ecx
push 4
push esi
push 0x403770
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x138], eax
test eax, eax
je 0x4030b3
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x140]
test eax, eax
je 0x4030b3
mov edx, dword [eax]
mov edx, dword [edx + 0x18]
push edi
lea ecx, [ebp - 8]
push ecx
push eax
call edx
mov eax, dword [esi + 0x140]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push eax
mov eax, dword [ecx + 0x1c]
call eax
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 0x140]
mov edx, dword [eax]
push 0
mov edx, dword [edx + 0x20]
mov edi, ecx
neg edi
push edi
mov edi, dword [ebp - 8]
push edi
push ecx
mov ecx, dword [esi + 0x10c]
push 0
push ecx
mov ecx, dword [esi + 0x108]
push ecx
mov ecx, dword [esi + 0x12c]
push 0
push 0
push ecx
push eax
call edx
pop edi
test eax, eax
jne 0x4030b3
push eax
push eax
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x403140
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x40315f
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push ebx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push ebx
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4031d4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
je 0x4031cd
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x4031cd
push ebx
push eax
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp + 8]
push ebx
push esi
call fcn.00402b50
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop ebx
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404a10
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push ebx
push 0x100
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov eax, dword [ebp + 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp + 8]
push 0x407b68
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x404ab5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x404ab5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x404ab5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x404ab5
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x404ab5
mov eax, dword [ebp + 0xc]
push 0
lea edx, [ebp + 8]
push edx
push eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp + 0xc]
cmp dword [ebp + 8], ecx
jb 0x404ab5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebp
ret 8
pop edi
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x405150
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, 0x66666667
imul dword [ebp + 0x18]
sar edx, 2
mov eax, edx
shr eax, 0x1f
push esi
lea esi, [edx + eax + 1]
mov eax, 0x66666667
imul dword [ebp + 0x1c]
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
push edi
lea edi, [edx + ecx + 1]
push 0
mov dword [ebp - 4], esi
mov dword [ebp - 8], edi
call dword [sym.imp.MSVCR100.dll__time64]
push eax
call dword [sym.imp.MSVCR100.dll_srand]
imul edi, esi
lea edi, [edi + edi*2]
add esp, 8
test edi, edi
jle 0x405272
push ebx
mov ebx, dword [sym.imp.MSVCR100.dll_rand]
jmp 0x4051b3
mov esi, dword [ebp - 4]
call ebx
cdq
idiv esi
mov esi, edx
call ebx
cdq
idiv dword [ebp - 8]
push 0xcc0020
lea ecx, [esi + esi*4]
add ecx, ecx
lea eax, [edx + edx*4]
mov edx, dword [ebp + 8]
add eax, eax
push eax
add eax, dword [ebp + 0x14]
push ecx
add ecx, dword [ebp + 0x10]
push edx
push 0xa
push 0xa
push eax
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, 0x10624dd3
mul edi
shr edx, 6
imul edx, edx, 0x3e8
mov eax, edi
sub eax, edx
jne 0x405268
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jb 0x405268
sub eax, esi
cmp eax, 0x32
ja 0x405268
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x405256
push 0
push 0
push 0
lea edx, [ebp - 0x24]
push edx
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea ecx, [ebp - 0x24]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40525e
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, esi
jae 0x405213
dec edi
test edi, edi
jg 0x4051b0
pop ebx
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x18]
push 0xcc0020
push 0
push 0
push edx
mov edx, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
call dword [sym.imp.GDI32.dll_BitBlt]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x405f50
Capabilities:
Accept command line arguments
Copy file
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x484
mov eax, dword [0x40a018]
xor eax, esp
mov dword [esp + 0x480], eax
push ebx
mov ebx, dword [sym.imp.USER32.dll_LoadStringW]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 0x64
push 0x40a610
push 0x67
push esi
call ebx
push 0x64
push 0x40a548
push 0x6d
push esi
call ebx
mov eax, esi
call fcn.00406140
lea eax, [esp + 0x10]
push eax
push edi
mov dword [esp + 0x18], 1
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
cmp word [edi], 0
jne 0x40608b
push 0x104
push 0x40b700
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x40b4f8
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x407c6c
push 0x40b4f8
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x40b4f8
push 0x40b700
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [0x40b4f0]
push 0x40b4f8
push 0x40b700
push ecx
push 0x40b4f8
lea edx, [esp + 0x98]
push str._s__d___s____s_
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
push 0x44
lea eax, [esp + 0x5c]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0x24
lea ecx, [esp + 0x30]
push ecx
lea edx, [esp + 0x44]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [esp + 0xa8]
push eax
push 0x40b4f8
mov dword [esp + 0x68], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [0x40b4f0]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x480]
xor ecx, esp
call fcn.004063aa
mov esp, ebp
pop ebp
ret 0x10
mov edx, dword [eax + 4]
push edx
call dword [sym.imp.MSVCR100.dll__wtoi]
add esp, 4
mov edi, eax
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x14]
push eax
mov eax, esi
call fcn.004061c0
add esp, 4
test eax, eax
je 0x406072
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov edi, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
call edi
test eax, eax
je 0x40611c
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorW]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
push esi
push eax
call ebx
test eax, eax
jne 0x40610b
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x4060e4
mov ecx, dword [esp + 0x48c]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004063aa
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4063aa
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a018]
jne 0x4063b4
repz ret
jmp fcn.004067b0
Function at 0x10037ea2
Capabilities:
Delete directory

Disassembly:
push ebx
mov ebx, esp
push ecx
push ecx
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c582a
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x10
push esi
push edi
mov eax, dword [0x1012f058]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [esi], 0x100e3ec0
cmp dword [esi + 0x24], edi
je 0x10037f67
lea eax, [esi + 0x1e4]
mov dword [ebp - 0x18], edi
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edi
call dword [sym.imp.kernel32.dll_TryEnterCriticalSection]
test eax, eax
je 0x10037f0d
lea ecx, [ebp - 0x18]
call fcn.100020c8
call dword [sym.imp.MSVCP140.dll__Thrd_id]
cmp dword [ebp - 0x14], eax
je 0x10037f2a
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a6f78
call dword [eax + 4]
cmp byte [esi + 0x20c], 0
je 0x10037f45
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a6f79
call dword [eax + 4]
cmp dword [esi + 0x208], edi
je 0x10037f5f
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a6f7a
call dword [eax + 4]
lea ecx, [ebp - 0x1c]
call fcn.10001ee8
mov eax, dword [esi + 0x218]
cmp eax, 0xffffffff
je 0x10037f80
or dword [esi + 0x218], 0xffffffff
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
cmp dword [esi + 0x21c], edi
je 0x10037fb6
lea edi, [esi + 0x220]
push edi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
jne 0x10037fab
mov eax, dword [0x1012f1b0]
mov ecx, 0x1012f1b0
push 0x326a7030
call dword [eax + 4]
xor eax, eax
mov word [edi], ax
and dword [esi + 0x21c], eax
mov edi, dword [esi + 0x1e0]
test edi, edi
je 0x10037fd9
push ecx
lea eax, [edi + 0xc]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100131a5
and dword [edi + 8], 0
lea ecx, [ebp - 0x1c]
call fcn.10001ee8
mov edi, dword [esi + 8]
and dword [esi + 8], 0
test edi, edi
je 0x10037ff2
mov ecx, edi
call fcn.100131a5
push edi
call fcn.100131a5
pop ecx
mov eax, dword [esi + 0x218]
cmp eax, 0xffffffff
je 0x1003800b
or dword [esi + 0x218], 0xffffffff
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
lea eax, [esi + 0x1e4]
push eax
call dword [sym.imp.kernel32.dll_DeleteCriticalSection]
mov ecx, dword [esi + 0x1e0]
test ecx, ecx
je 0x1003802e
and dword [esi + 0x1e0], 0
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x2c]
call fcn.100131a5
and dword [ebp - 4], 0
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1003804b
and dword [esi + 0xc], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov esi, dword [esi + 8]
test esi, esi
je 0x10038060
mov ecx, esi
call fcn.100131a5
push esi
call fcn.100131a5
pop ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x401757
Capabilities:
Reference http user-agent string

Disassembly:
push ebx
push edi
push esi
call fcn.004014ea
xor edi, edi
test eax, eax
jne 0x401834
call dword [sym.imp.libcurl.dll_curl_easy_init]
test eax, eax
je 0x401834
mov esi, eax
xor ebx, ebx
inc ebx
mov edi, dword [sym.imp.libcurl.dll_curl_easy_setopt]
push ebx
push 0x2d
push eax
call edi
add esp, 0xc
push ebx
push 0xd5
push esi
call edi
add esp, 0xc
push 0x1e
push 0xd6
push esi
call edi
add esp, 0xc
push 0xf
push 0xd7
push esi
call edi
add esp, 0xc
push 0
push 0x29
push esi
call edi
add esp, 0xc
push 2
push 0x54
push esi
call edi
add esp, 0xc
push str.Mozilla_5.0__Windows_NT_10.0__Win64__x64__AppleWebKit_537.36__KHTML__like_Gecko__Chrome_118.0.5993.70_Safari_537.36
push 0x2722
push esi
call edi
add esp, 0xc
push ebx
push 0x71
push esi
call edi
add esp, 0xc
push 0
push 0x2751
push esi
call edi
add esp, 0xc
push 0
push 0x2771
push esi
call edi
add esp, 0xc
push 0xffffffffffffffff
push 0x5c
push esi
call edi
add esp, 0xc
push ebx
push 0x113
push esi
call edi
add esp, 0xc
xor eax, eax
cmp dword [0x424190], eax
je 0x401824
push 0x424190
push 0x9d75
jmp 0x401828
push 0
push 0x40
push esi
call dword [sym.imp.libcurl.dll_curl_easy_setopt]
add esp, 0xc
mov edi, esi
mov eax, edi
pop esi
pop edi
pop ebx
ret

Function at 0x4071a7
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x407242
mov edi, eax
mov dword [ebp - 0x10], esp
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00415318
mov ebx, esp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
dec eax
xor esi, esi
cmp eax, edi
jae 0x40723d
sub esp, 0x20
movaps xmm0, xmmword [0x4203a0]
movups xmmword [esp + 0xc], xmm0
mov dword [esp + 8], ebx
and dword [esp + 0x1c], 0
and dword [esp + 4], 0
mov dword [esp], 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x40723d
mov edi, eax
push eax
call sub.msvcrt.dll_malloc
pop ecx
test eax, eax
je 0x40723d
push 0
push 0
push edi
push eax
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
mov esi, eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
cmove esi, eax
mov esp, dword [ebp - 0x10]
jmp 0x407244
xor esi, esi
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40724e
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, dword [ebp + 8]
push esi
call fcn.00407168
pop ecx
mov edi, eax
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x40730c
mov esi, eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
test edi, edi
setne bl
lea eax, [eax + ebx*4]
shl ebx, 2
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00415318
mov eax, edi
mov edi, esp
test eax, eax
je 0x4072b3
push 0x4203b0
push edi
call sub.msvcrt.dll_wcscpy
pop ecx
pop edx
lea eax, [edi + ebx*2]
push esi
push eax
push 0xffffffffffffffff
push dword [ebp + 8]
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor esi, esi
dec esi
test eax, eax
je 0x407329
mov ebx, edi
mov edi, esi
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
xor esi, esi
test eax, eax
jne 0x407329
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x407311
push 0x80
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp eax, 1
jne 0x407327
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x407327
jmp 0x407329
xor esi, esi
dec esi
jmp 0x40732c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x407329
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x407329
mov esi, edi
mov esp, dword [ebp - 0x10]
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x407468
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
push ecx
call fcn.00407168
pop ecx
mov ebx, eax
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x4074fe
mov edi, eax
mov dword [ebp - 0x14], esp
mov ecx, ebx
xor ebx, ebx
test ecx, ecx
setne bl
lea eax, [eax + ebx*4]
shl ebx, 2
lea eax, [eax*2 + 3]
and eax, 0xfffffffc
call fcn.00415318
mov eax, esp
test ecx, ecx
mov dword [ebp - 0x10], eax
je 0x4074d1
push 0x4203b0
push eax
call sub.msvcrt.dll_wcscpy
mov eax, dword [ebp - 0x10]
add esp, 8
lea eax, [eax + ebx*2]
push edi
push eax
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x407503
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov ecx, eax
xor eax, eax
cmp ecx, 1
sbb eax, eax
jmp 0x407506
xor eax, eax
dec eax
jmp 0x407509
xor eax, eax
dec eax
mov esp, dword [ebp - 0x14]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret