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

Disassembly:
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
push 0
lea eax, [esp + 0x1c]
push eax
push 0x14642c8
push 0
mov dword [ebx], 0xffffffff
push 0x35
mov dword [edi], 0xffffffff
push ecx
mov dword [esi], 0xffffffff
mov dword [esp + 0x30], 0x5014
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x4025c0
mov ax, word [0x14642c8]
mov ecx, 0x14642c8
mov dword [esp + 0x1c], ecx
test ax, ax
je 0x40257c
movzx eax, ax
nop
cmp ax, 0x30
jb 0x40256c
cmp ax, 0x39
jbe 0x402578
movzx eax, word [ecx + 2]
add ecx, 2
test ax, ax
jne 0x402560
mov dword [esp + 0x1c], ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004024b0
mov dword [esi], eax
lea eax, [esp + 0x20]
push eax
call fcn.004024b0
lea ecx, [esp + 0x24]
push ecx
mov dword [edi], eax
call fcn.004024b0
add esp, 0xc
mov dword [ebx], eax
cmp dword [esi], 0
jl 0x4025ba
cmp dword [edi], 0
jl 0x4025ba
test eax, eax
jl 0x4025ba
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
xor al, al
pop ebx
ret

Function at 0x402610
Capabilities:
Read http header

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push 0
lea eax, [esp + 4]
push eax
push 0x14784a8
push 0
push 0x21
push ecx
mov dword [esp + 0x18], 0x5014
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x40270f
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIW]
push str.http:__
push 0x14784a8
call esi
cmp eax, 0x14784a8
je 0x402707
push str.https:__
push 0x14784a8
call esi
cmp eax, 0x14784a8
je 0x402707
push str.http
push 0x146e480
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp byte [esp + 0x14], 0
mov eax, 0x40c658
jne 0x402692
mov eax, 0x40c65a
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push eax
push 0x146e480
call esi
mov edx, dword [esp + 0x10]
push edx
push 0x146e480
call esi
push 0x40c654
push 0x146e480
call esi
movzx eax, word [esp + 0x18]
push eax
push 0x40c64c
push 0x146e3b8
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push 0x146e3b8
push 0x146e480
call esi
cmp word [0x14784a8], 0x2f
je 0x4026f3
push 0x40c648
push 0x146e480
call esi
push 0x14784a8
push 0x146e480
call esi
mov eax, 0x146e480
pop esi
pop ecx
ret
mov eax, 0x14784a8
pop esi
pop ecx
ret
xor eax, eax
pop ecx
ret
Function at 0x4027b0
Capabilities:
Receive http response

Disassembly:
push ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
mov esi, dword [esp + 0x28]
push edi
mov edi, dword [esp + 0x24]
push eax
push edi
push ebp
xor bl, bl
push ecx
mov byte [esp + 0x23], bl
mov dword [esi], 0
call fcn.00402720
add esp, 0x10
test al, al
je 0x4028bc
mov ebx, dword [esp + 0x1c]
sub edi, ebp
mov dword [esp + 0x2c], 0
inc edi
jmp 0x402800
mov eax, dword [esi]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
push edx
push edi
add eax, ebx
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4028a8
mov eax, dword [esp + 0x2c]
test eax, eax
jbe 0x402880
mov ecx, dword [0x410ee0]
cmp ecx, 0x1400
jge 0x402853
mov edx, dword [esi]
push eax
add edx, ebx
push edx
lea eax, [ecx + 0x410ee8]
push eax
call fcn.004054e0
mov eax, dword [esp + 0x38]
add esp, 0xc
add dword [0x410ee0], eax
push eax
call fcn.00401980
mov eax, dword [esp + 0x30]
add dword [esi], eax
mov ecx, dword [esp + 0x2c]
mov edx, dword [ecx]
sub edi, eax
mov eax, dword [esi]
add eax, ebp
push eax
push edx
call fcn.00402170
add esp, 0xc
test edi, edi
jne 0x40288f
mov byte [esp + 0x13], 1
jmp 0x40288f
push 0
mov byte [esp + 0x17], 1
call fcn.004019c0
add esp, 4
cmp dword [esp + 0x2c], 0
jbe 0x4028b2
test edi, edi
jg 0x402800
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 4
call fcn.004019c0
add esp, 4
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret

Function at 0x4028d0
Capabilities:
Get file size
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push esi
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push ebp
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x402962
mov ecx, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x1c]
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x402949
cmp dword [esp + 0x10], edi
jne 0x402949
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, edi
jne 0x402949
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00401990
add esp, 4
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 8
call fcn.004019c0
add esp, 4
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
push 0xf
call fcn.004019c0
add esp, 4
pop esi
pop ebp
mov al, bl
pop ebx
pop ecx
ret
Function at 0x403540
Capabilities:
Initialize winhttp library
Prepare http request
Receive http response

Disassembly:
sub esp, 0x18
push esi
push 0
push 0
push 0
push 0
push str.Preloader
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x4036d5
mov eax, dword [esp + 0x20]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push eax
push 0x1504638
call ebx
lea ecx, [esp + 0xb]
push ecx
lea edx, [esp + 0x10]
push edx
push 0x14fa610
push 0x14f05e8
push 0x1504638
call fcn.004023e0
add esp, 0x14
test al, al
je 0x4036d4
mov eax, dword [esp + 0xc]
push edi
push 0
push eax
push 0x14f05e8
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x4036d3
movzx ecx, byte [esp + 0xf]
neg ecx
sbb ecx, ecx
and ecx, 0x800000
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0
push 0x14fa610
push str.POST
push edi
mov dword [esp + 0x38], 0x40c7f0
mov dword [esp + 0x3c], 0
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov esi, eax
test esi, esi
je 0x4036cc
push ebp
push 4
lea eax, [esp + 0x1c]
push eax
push 0x1f
push esi
mov dword [esp + 0x28], 0x3100
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
push str.Content_Type:_application_x_www_form_urlencoded_r_n
push 0x14e65c0
call ebx
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push eax
push eax
push ecx
push 0x14e65c0
call ebx
mov ebp, dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
push eax
push 0x14e65c0
push esi
call ebp
test eax, eax
jne 0x4036bb
mov edx, dword [esp + 0x1c]
push 0x1504638
push edx
push esi
call fcn.00402ab0
add esp, 0xc
test al, al
je 0x4036c4
push 1
call fcn.004019f0
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
add esp, 4
push 0
push 0x4e8148
call edi
push eax
push 0x4e8148
call edi
push eax
movsx eax, byte [0x4e8148]
neg eax
sbb eax, eax
and eax, 0x4e8148
push eax
push 0x14e65c0
call ebx
push eax
push 0x14e65c0
push esi
call ebp
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4036c4
push 0
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
push esi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop ebp
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
pop edi
pop ebx
pop esi
add esp, 0x18
ret
Function at 0x4036e0
Capabilities:
Accept command line arguments

Disassembly:
push ecx
test byte [0x150e668], 1
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
jne 0x403700
or dword [0x150e668], 1
call esi
mov dword [0x150e664], eax
mov eax, dword [0x150e664]
push str._mode
push eax
xor ebx, ebx
call fcn.0040544a
add esp, 8
test eax, eax
je 0x403735
mov ecx, dword [0x150e664]
push 0x40c8b0
push ecx
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x4037b6
push edi
lea edx, [esp + 0xc]
push edx
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor edi, edi
cmp dword [esp + 0xc], ebx
mov dword [0x150e660], eax
jle 0x40378a
jmp 0x403758
mov eax, dword [0x150e660]
test eax, eax
je 0x40378a
mov esi, dword [eax + edi*4]
push str._mode
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x403791
push 0x40c8b0
push esi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x403791
inc edi
cmp edi, dword [esp + 0xc]
jl 0x403753
pop edi
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
lea eax, [edi + 1]
cmp eax, dword [esp + 0xc]
jge 0x40378a
mov ecx, dword [0x150e660]
mov edi, dword [ecx + edi*4 + 4]
push edi
mov dword [0x410040], edi
call dword [sym.imp.SHLWAPI.dll_StrToIntW]
pop edi
pop esi
pop ebx
pop ecx
ret
pop esi
mov eax, ebx
pop ebx
pop ecx
ret
Function at 0x403b20
Capabilities:
Create process on windows
Query environment variable
Resume thread

Disassembly:
sub esp, 0x54
push ebx
push ebp
push esi
push edi
push 0xf03c
push 0x155e6f0
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
call fcn.00401d00
push eax
push str.PR:_s
push 0x152c6f0
call dword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 0x10
push 0x152c6f0
call ebx
lea edi, [eax*2 + 0x152c6f2]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
cmp esi, ebp
je 0x403b9e
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyW]
cmp word [esi], 0
je 0x403b9c
push esi
push edi
call ebp
push esi
call ebx
push edi
lea esi, [esi + eax*2 + 2]
call ebx
lea edi, [edi + eax*2 + 2]
test esi, esi
jne 0x403b80
xor ebp, ebp
push 2
push ebp
xor eax, eax
push 0x155e6f0
mov word [edi], ax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
cmp edi, ebp
je 0x403c96
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0x155e6f0
mov ecx, 0x22
xor edx, edx
push 0x15226c8
mov word [0x15226c8], cx
mov word [0x15226ca], dx
call esi
push 0x40c4fc
push 0x15226c8
call esi
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x68]
cmp eax, ebp
je 0x403c0a
cmp word [eax], bp
je 0x403c0a
push eax
push 0x15226c8
call esi
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
push ebp
push 0x152c6f0
push 0x404
push ebp
push ebp
push ebp
push 0x15226c8
xor eax, eax
push ebp
mov dword [esp + 0x70], ebp
mov word [esp + 0x7a], ax
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x54], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x48], 0x44
mov dword [esp + 0x74], 0x80
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x403c96
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [esp + 0x10]
push 0xea60
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x54
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x54
ret
Function at 0x404210
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x5014
call fcn.00403ca0
mov esi, eax
lea eax, [esp + 0x10]
push eax
xor ebp, ebp
push esi
mov dword [esp + 0x18], ebp
call fcn.004013b0
mov ecx, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
push ecx
push esi
mov esi, dword [esp + 0x28]
push edi
push esi
call fcn.00401450
add esp, 0x1c
cmp eax, ebp
jl 0x4042e6
add esi, eax
push esi
sub edi, eax
call fcn.004014a0
add esp, 4
xor ecx, ecx
cmp edi, ebp
jle 0x404274
mov edx, ecx
and edx, 0x1f
mov dl, byte [edx + eax]
xor byte [ecx + esi], dl
inc ecx
cmp ecx, edi
jl 0x404264
lea eax, [edi - 0xb]
cmp eax, ebp
jl 0x4042d7
push ebx
lea esp, [esp]
xor bl, bl
xor edx, edx
test bl, bl
jne 0x4042ac
lea eax, [edx + ebp]
movzx ecx, byte [eax + esi]
push ecx
call fcn.004014e0
add esp, 4
cmp al, byte [edx + str.__metalink_]
je 0x4042a2
mov bl, 1
inc edx
cmp edx, 0xb
jl 0x404284
test bl, bl
je 0x4042c4
inc ebp
lea eax, [edi - 0xb]
cmp ebp, eax
jle 0x404280
pop ebx
push esi
push edi
call fcn.00404050
add esp, 8
pop edi
pop esi
pop ebp
pop ecx
ret
lea eax, [esi + ebp]
test eax, eax
je 0x4042d6
sub eax, esi
add eax, 0xb
mov edi, eax
mov byte [esi + edi], 0
pop ebx
push esi
push edi
call fcn.00404050
add esp, 8
pop edi
pop esi
pop ebp
pop ecx
ret
pop edi
pop esi
xor al, al
pop ebp
pop ecx
ret

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

Disassembly:
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, dword [esp + 0x14]
cmp edi, eax
jb 0x40430c
mov edi, eax
mov ecx, dword [esi + 4]
push 0
push 0
sub eax, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 4]
push 0
lea edx, [esp + 0x10]
push edx
push edi
lea ebx, [esi + 8]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x404348
push edi
push ebx
call fcn.00404210
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
ret 4
pop edi
pop esi
xor al, al
pop ebx
pop ecx
ret 4
Function at 0x404470
Capabilities:
Delete file
Download url
Hide graphical window
Inspect load icon resource
Receive data

Disassembly:
mov eax, dword [0x410ee4]
push ebx
push esi
push edi
push 0x8a
push eax
call dword [sym.imp.USER32.dll_LoadIconW]
mov ecx, dword [0xeea98c]
mov edx, dword [0xeea988]
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push ecx
push 0x3ec
push edx
mov dword [0xeea990], eax
call esi
push eax
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0xeea988]
push 0x5014
push 0x19acff8
push 0x3eb
push eax
call dword [sym.imp.USER32.dll_GetDlgItemTextW]
mov ecx, dword [0xeea98c]
push ecx
push 0x19acff8
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov edx, dword [0xeea988]
push 0x19acff8
push 0x3eb
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov eax, dword [0xeea988]
push 1
push 0x3ee
push eax
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov ecx, dword [0xeea988]
push 0x3ea
push ecx
call esi
push 0x40c988
push str.i234e234a234k234u234i234.423d432l423l
mov esi, eax
call fcn.00403d50
add esp, 8
push 0xc9
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0x467
push esi
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
call edi
push 5
push esi
call edi
push 0x3f1
call fcn.00402270
push 0x3ec
call fcn.00402270
push 0x3f2
call fcn.00402270
push 0x3eb
call fcn.00402270
push 0xffffffffffffffff
call fcn.00402270
push 0x3ee
call fcn.00402270
push 0x3ef
call fcn.00402270
push 0x3f0
call fcn.00402270
push 8
call fcn.00402270
add esp, 0x24
push 0
push 0
push 0x5014
push 0x135a1d0
push 0x40c930
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x4045cf
push 0x135a1d0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [0xeea988]
push 0
push 0x32
push 1
push edx
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, dword [0xeea990]
test eax, eax
je 0x4045fb
push eax
mov eax, dword [0xeea988]
push 0
push 0x80
push eax
call ebx
pop edi
pop esi
pop ebx
ret

Function at 0x404800
Capabilities:
Create thread
Delete file
Download url
Receive data

Disassembly:
push 0x190
push 0x45bee8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
push 0
push 0
push 0x5014
push 0x135a1d0
push 0x40c930
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
jl 0x404839
push 0x135a1d0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [esp + 4]
push 0
mov dword [0xeea98c], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
cmp byte [esp + 8], 0
mov dword [0x410ee4], eax
mov dword [0xeea988], 0
jne 0x40487c
push 0
push 0
push 0
push 0x4047d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret
Function at 0x404c30
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x404bf0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x404c50
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edi
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_lstrlenW]
push eax
call ebp
add eax, eax
push eax
call fcn.00403ca0
add esp, 4
call esi
mov ebx, dword [sym.imp.SHLWAPI.dll_StrStrIW]
mov edi, eax
push str._extendtail
push edi
call ebx
test eax, eax
jne 0x404c9d
push 0x40caf0
push edi
call ebx
test eax, eax
jne 0x404c9d
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea ecx, [esp + 0x10]
xor ebx, ebx
push ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
call esi
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor esi, esi
cmp dword [esp + 0x10], ebx
mov edi, eax
jle 0x404d2f
nop
test edi, edi
je 0x404d2f
mov edx, dword [edi + esi*4]
push edx
call ebp
add eax, eax
push eax
call fcn.00403ca0
mov ebx, dword [edi + esi*4]
push str._extendtail
push ebx
call fcn.0040544a
add esp, 0xc
test eax, eax
jne 0x404d0c
push 0x40caf0
push ebx
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x404d0c
inc esi
cmp esi, dword [esp + 0x10]
jl 0x404cc0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
lea eax, [esi + 1]
cmp eax, dword [esp + 0x10]
jge 0x404d2f
mov ecx, dword [edi + esi*4 + 4]
push ecx
call ebp
add eax, eax
push eax
call fcn.00403ca0
mov edx, dword [edi + esi*4 + 4]
add esp, 4
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x405070
Capabilities:
Create directory
Delete directory
Delete file
Get common file path
Read file via mapping

Disassembly:
push ecx
push esi
lea eax, [esp + 4]
push edi
push eax
call fcn.00404880
mov eax, dword [esp + 0x14]
add esp, 4
test eax, eax
je 0x4050b0
push eax
call fcn.004059f0
add esp, 4
test eax, eax
je 0x4050b0
mov esi, dword [esp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.__extendtail
push esi
call edi
call fcn.00404c50
push eax
push esi
call edi
push str.__45_LoadedContent
push 0
push 4
call dword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x4051de
push ebx
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4051d6
mov ecx, dword [0xeea94c]
push ebp
push ecx
call fcn.00403ca0
mov edx, dword [0xeea94c]
push edx
mov esi, eax
push ebx
push esi
call fcn.004054e0
push 0xa028
call fcn.00403ca0
mov edi, eax
push edi
push 0x45bf18
call fcn.00403920
push edi
call fcn.00403a40
add esp, 0x20
push 0x19cb180
push 0x5014
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0x19cb180
push 0
push 0x40cc10
push 0x19cb180
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x19cb180
call ebp
push 0
push 0x19cb180
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0x19cb180
push 0x19c1158
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x19c1158
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
push edi
push 0x19c1158
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [0xeea94c]
push 0x19c1158
push eax
push esi
call fcn.004028d0
add esp, 0xc
test al, al
jne 0x4051b8
push 0x19c1158
call ebp
push 0x19cb180
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x10]
push ecx
push 0x19c1158
call fcn.00404e70
mov esi, dword [esp + 0x20]
add esp, 8
pop ebp
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor al, al
pop esi
pop ecx
ret 4
Function at 0x405240
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
sub esp, 0x10
push esi
push edi
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 8
mov dword [esp + 0x18], 0x20
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
push 0x190
push 0x45bf00
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
mov byte [esp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov edi, eax
push str._silent
push edi
call fcn.0040544a
add esp, 8
test eax, eax
jne 0x4052a1
push 0x40cc14
push edi
call fcn.0040544a
add esp, 8
test eax, eax
je 0x4052a6
mov byte [esp + 0xb], 1
push 0
call fcn.00404c50
push eax
call fcn.004051f0
mov esi, eax
add esp, 8
mov dword [esp + 0xc], 0
test esi, esi
je 0x4052d9
push esi
call fcn.004059f0
lea ecx, [esp + 0x10]
push ecx
push eax
push esi
call fcn.00403e00
add esp, 0x10
call fcn.004036e0
sub eax, 0
je 0x4052f4
sub eax, 2
jne 0x40530a
push esi
lea ecx, [esp + 0xf]
call fcn.00405070
jmp 0x40530a
mov edx, dword [esp + 0xc]
push edi
push edx
lea eax, [esp + 0x13]
push eax
push 0
lea ecx, [esp + 0x1b]
call fcn.00404f10
cmp word [0xeae858], 0
pop edi
pop esi
je 0x405323
push 0xeae858
call fcn.00401b80
add esp, 4
call fcn.00402050
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x408ab5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410648]
jne 0x408abf
repz ret
jmp fcn.0040a3bc
Function at 0x408ff6
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.00407d20
and dword [ebp - 4], 0
cmp dword [0x19d57fc], 0
mov ebx, eax
jne 0x4090a7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x409158
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x409158
push eax
call fcn.00407cae
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x19d57fc], eax
call esi
push eax
call fcn.00407cae
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x19d5800], eax
call esi
push eax
call fcn.00407cae
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x19d5804], eax
call esi
push eax
call fcn.00407cae
pop ecx
mov dword [0x19d580c], eax
test eax, eax
je 0x4090a7
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00407cae
pop ecx
mov dword [0x19d5808], eax
mov eax, dword [0x19d5808]
cmp eax, ebx
je 0x4090ff
cmp dword [0x19d580c], ebx
je 0x4090ff
push eax
call fcn.00407d29
push dword [0x19d580c]
mov esi, eax
call fcn.00407d29
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4090ff
test edi, edi
je 0x4090ff
call esi
test eax, eax
je 0x4090f6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4090f6
test byte [ebp - 0xc], 1
jne 0x4090ff
or dword [ebp + 0x10], 0x200000
jmp 0x409138
mov eax, dword [0x19d5800]
cmp eax, ebx
je 0x409138
push eax
call fcn.00407d29
pop ecx
test eax, eax
je 0x409138
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x409138
mov eax, dword [0x19d5804]
cmp eax, ebx
je 0x409138
push eax
call fcn.00407d29
pop ecx
test eax, eax
je 0x409138
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x19d57fc]
call fcn.00407d29
pop ecx
test eax, eax
je 0x409158
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40915a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret