joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401480
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push edi
push 0
lea eax, [esp + 0x14]
push 0x20019
push eax
mov byte [ebx], 0
call fcn.00401430
add esp, 0xc
test eax, eax
jne 0x4014c9
lea ecx, [esp + 0x14]
lea edx, [esp + 8]
push ecx
push ebx
push edx
push eax
mov eax, dword [esp + 0x20]
push str.Image
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4014f8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push esi
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
mov ecx, dword [esp + 0x10]
xor eax, eax
test ecx, ecx
pop edi
pop ebx
setne al
pop ecx
ret

Function at 0x401580
Capabilities:
Get common file path

Disassembly:
mov al, byte [esp + 0x10]
push ebx
mov ebx, dword [esp + 8]
push esi
test al, al
push edi
mov byte [ebx], 0
je 0x4015a0
mov eax, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
jmp 0x4015bd
mov ecx, dword [esp + 0x14]
push 0
push ecx
push ebx
call fcn.00401480
add esp, 0xc
test eax, eax
jne 0x4015bd
push ebx
call fcn.00401530
add esp, 4
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4015db
cmp byte [ecx + ebx - 1], 0x5c
je 0x4015db
mov byte [ecx + ebx], 0x5c
mov byte [ecx + ebx + 1], 0
mov edi, dword [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
ret

Function at 0x401610
Capabilities:
Download url
Receive data

Disassembly:
sub esp, 0xc
mov eax, dword [0x407ac4]
push ebx
push esi
push edi
push 0
push 0
push 0
push 0x65
push eax
mov dword [esp + 0x24], 0x406184
mov dword [esp + 0x28], 0x406170
mov dword [esp + 0x20], 0x406144
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov edi, dword [esp + 0x20]
mov ebx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
mov dword [0x407ac0], eax
push ecx
push 0
push edi
push ebx
push 0
call sub.urlmon.dll_URLDownloadToFileA
mov edx, dword [0x407ac0]
mov esi, eax
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
test esi, esi
je 0x40168b
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40168b
mov eax, dword [str.Error_downloading__s_to_n_s_n_0x_x_.]
push esi
push edi
push ebx
push eax
call fcn.00401000
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x401790
Capabilities:
Check if file exists
Delete file
Read file on windows

Disassembly:
sub esp, 0x810
push ebx
push ebp
mov ebp, dword [esp + 0x81c]
push esi
xor bl, bl
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov byte [esp + 0x14], bl
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
push esi
push str.WebIpc.asp
push 0x401
push eax
call fcn.00401580
and esi, 0xff
lea ecx, [esp + 0x28]
push esi
push ecx
push ebp
call fcn.00401610
add esp, 0x1c
test eax, eax
je 0x4017e3
test bl, bl
jne 0x40182b
push 0
push 0
push 3
push 0
push 1
lea edx, [esp + 0x2c]
push 0x80000000
push edx
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x401836
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 2
jne 0x401829
test bl, bl
jne 0x401819
mov bl, 1
mov byte [esp + 0x14], bl
jmp 0x4017ad
mov eax, dword [str.Download_error.__Please_try_saving_the_file_to_a_different_location.]
push 2
push eax
call fcn.00401000
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x810
ret
lea ecx, [esp + 0x10]
push 0
push ecx
lea edx, [esp + 0x424]
push 0x401
push edx
push esi
mov dword [esp + 0x24], 0x401
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401861
xor edi, edi
jmp 0x401869
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test edi, edi
jne 0x4018cf
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4018cf
mov ecx, dword [esp + 0x830]
mov edx, dword [esp + 0x82c]
mov byte [esp + eax + 0x41c], 0
mov eax, dword [esp + 0x828]
push edi
push ecx
push edx
lea ecx, [esp + 0x428]
push eax
push ecx
call fcn.00401310
mov esi, eax
add esp, 0x14
test esi, esi
je 0x401829
mov edx, dword [str.Invalid_data_format_in__s.]
push ebp
push edx
jmp 0x401821
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x810
ret

Function at 0x4018e0
Capabilities:
Get hostname
Get session user name

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push edi
push eax
push esi
mov byte [esi], 0
mov dword [esp + 0x18], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x401924
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x401924
lea ecx, [esp + 0x10]
mov dword [esp + 0x10], ebx
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
jne 0x401924
call edi
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x401a10
Capabilities:
Create process on windows
Delete file

Disassembly:
sub esp, 0x448
push ebx
push ebp
mov ebp, dword [esp + 0x454]
push esi
push edi
mov byte [esp + 0x10], 0
mov eax, dword [ebp + 8]
test eax, eax
jne 0x401a40
mov al, byte [esp + 0x460]
mov ecx, dword [str.Please_wait_while_the_client_is_upgraded.]
neg al
sbb eax, eax
and eax, ecx
mov ecx, dword [ebp + 0x34]
mov edx, dword [ebp + 0x30]
push ecx
push edx
push eax
call fcn.00401930
mov ebx, dword [sym.imp.SHELL32.dll_ShellExecuteExA]
add esp, 0xc
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x10]
mov eax, dword [ebp + 0x14]
push esi
push 0x2f
push eax
call fcn.00401fb0
add esp, 8
inc eax
lea ecx, [esp + 0x58]
push eax
push 0x401
push ecx
call fcn.00401580
mov eax, dword [ebp + 0x14]
and esi, 0xff
lea edx, [esp + 0x64]
push esi
push edx
push eax
call fcn.00401610
mov esi, eax
add esp, 0x1c
test esi, esi
je 0x401aa9
mov al, byte [esp + 0x10]
test al, al
jne 0x401b38
mov edx, dword [ebp]
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x54]
add edx, 2
push eax
mov dword [esp + 0x1c], 0x3c
mov dword [esp + 0x20], 0x40
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
call ebx
test eax, eax
je 0x401ae7
xor esi, esi
jmp 0x401aef
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov al, byte [esp + 0x10]
test al, al
jne 0x401b06
cmp esi, 2
jne 0x401b06
mov byte [esp + 0x10], 1
jmp 0x401a5b
test esi, esi
jne 0x401b19
mov ecx, dword [esp + 0x50]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x401b2d
mov eax, dword [str.Error_executing__s__0x_x_.]
lea edx, [esp + 0x54]
push esi
push edx
push eax
call fcn.00401000
add esp, 0xc
lea ecx, [esp + 0x54]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x448
ret
Function at 0x401dc0
Capabilities:
Accept command line arguments

Disassembly:
sub esp, 0x43c
mov eax, dword [esp + 0x440]
push esi
push edi
mov dword [0x407ac4], eax
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 8]
push eax
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetCommandLineA]
lea ecx, [esp + 0x44]
push 0x401
lea edx, [esp + 0x10]
push ecx
push edx
mov dword [esp + 0x28], str.http:__
call edi
push eax
call fcn.00401310
mov esi, eax
add esp, 0x14
test esi, esi
je 0x401e2e
call edi
push eax
mov eax, dword [str.Invalid_data_format_in__s.]
push eax
call fcn.00401000
add esp, 8
mov eax, esi
pop edi
pop esi
add esp, 0x43c
ret 0x10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x401e52
lea ecx, [esp + 0x40]
push 0x401
lea edx, [esp + 0xc]
push ecx
push edx
push eax
call fcn.00401790
add esp, 0x10
test eax, eax
jne 0x401eb9
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x401e74
lea eax, [esp + 8]
push 0
push eax
call fcn.00401a10
add esp, 8
pop edi
pop esi
add esp, 0x43c
ret 0x10
mov eax, dword [esp + 0x28]
test eax, eax
jne 0x401e94
lea ecx, [esp + 8]
push ecx
call fcn.00401cc0
add esp, 4
pop edi
pop esi
add esp, 0x43c
ret 0x10
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x401eac
pop edi
mov eax, 0x57
pop esi
add esp, 0x43c
ret 0x10
lea edx, [esp + 8]
push edx
call fcn.00401cc0
add esp, 4
pop edi
pop esi
add esp, 0x43c
ret 0x10

Function at 0x4037ad
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x407508
cmp edx, dword [eax]
je 0x4037cf
add eax, 8
inc ecx
cmp eax, 0x407598
jl 0x4037c0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x407508]
jne 0x4038fd
mov eax, dword [0x407ad0]
cmp eax, 1
je 0x4038d7
test eax, eax
jne 0x403800
cmp dword [0x407234], 1
je 0x4038d7
cmp edx, 0xfc
je 0x4038fd
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x403837
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004043e0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00403c70
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40387a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00403c70
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40650c
push edi
call fcn.00405160
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004043e0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004043f0
lea eax, [ebp - 0xa0]
push 0x4064ec
push eax
call fcn.004043f0
push dword [esi + 0x40750c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004043f0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004050ce
add esp, 0x2c
pop edi
jmp 0x4038fd
lea eax, [ebp + 8]
lea esi, [esi + 0x40750c]
push 0
push eax
push dword [esi]
call fcn.00403c70
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x6d810b50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push 1
pop eax
test eax, eax
je 0x6d810f77
lea eax, [ebp - 0x230]
mov dword [ebp - 0x3a0], eax
cmp dword [ebp - 0x6fc], 0
jne 0x6d810a4c
and byte [ebp - 0x77c], 0
cmp dword [ebp - 0x6fc], 1
jne 0x6d810afd
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
mov byte [ebp - 0x78a], 0xa0
and byte [ebp - 0x789], 0
mov byte [ebp - 0x788], 3
mov byte [ebp - 0x787], 0x3b
mov byte [ebp - 0x786], 0x33
mov byte [ebp - 0x785], 0x3c
mov byte [ebp - 0x784], 0x30
mov byte [ebp - 0x783], 0x3a
mov byte [ebp - 0x782], 0x2d
clc
invalid
jmp [0xf87f85c6]
invalid
push dword [ecx - 0x3a]
test dword [eax + 0x3bfffff8], eax
mov byte [ebp - 0x77f], 0x33
mov byte [ebp - 0x77e], 0x33
mov byte [ebp - 0x77d], 0x5f
push 0xc
lea eax, [ebp - 0x78c]
push eax
call fcn.6d80eee1
pop ecx
push eax
mov eax, dword [ebp - 0x28]
lea eax, [ebp + eax - 0x12c]
push eax
call fcn.6d80ee42
add esp, 0xc
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x3a0], eax
jmp 0x6d810e49
cmp dword [ebp - 0x6fc], 2
jne 0x6d810bba
and byte [ebp - 0x79c], 0
and byte [ebp - 0x79b], 0
mov byte [ebp - 0x79a], 0x10
and byte [ebp - 0x799], 0
mov byte [ebp - 0x798], 0xb3
mov byte [ebp - 0x797], 0x8c
mov byte [ebp - 0x796], 0x80
mov byte [ebp - 0x795], 0x81
mov byte [ebp - 0x794], 0x9d
mov byte [ebp - 0x793], 0x8a
mov byte [ebp - 0x792], 0x9c
mov byte [ebp - 0x791], 0xc1
mov byte [ebp - 0x790], 0x8b
mov byte [ebp - 0x78f], 0x83
mov byte [ebp - 0x78e], 0x83
mov byte [ebp - 0x78d], 0xef
call fcn.6d80eed1
outsb dx, byte [esi]
jns 0x6d810b26
sti
push 0xc
lea eax, [ebp - 0x79c]
push eax
call fcn.6d80eee1
pop ecx
push eax
mov eax, dword [ebp - 0x550]
lea eax, [ebp + eax - 0x654]
push eax
call fcn.6d80ee42
add esp, 0xc
lea eax, [ebp - 0x654]
mov dword [ebp - 0x3a0], eax
jmp 0x6d810e49
cmp dword [ebp - 0x6fc], 3
jne 0x6d810c5b
and byte [ebp - 0x7ac], 0
invalid
movsd dword es:[edi], dword [esi]
push ebp
clc
invalid
invalid

Function at 0x6d818f1d
Capabilities:
Get file size
Read file via mapping

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
xor edi, edi
push edi
push edi
push edi
push 2
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, edi
mov dword [esi], eax
je 0x6d818f5f
push edi
push edi
push edi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 8], eax
je 0x6d818f5f
push edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0xc], eax
jne 0x6d818f6c
push 0x88760314
call fcn.6d816de0
pop ecx
jmp 0x6d818f6e
xor eax, eax
pop edi
pop esi
ret
Function at 0x6d818f71
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [0x6d85230c], edi
jne 0x6d819019
push 0x6d802580
mov dword [0x6d85230c], 1
mov dword [0x6d852304], edi
mov dword [0x6d852300], edi
mov dword [0x6d852308], edi
call dword [sym.imp.msvcrt.dll_getenv]
cmp eax, edi
pop ecx
je 0x6d818fb8
push eax
call fcn.6d818e0a
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push 0x6d802564
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x6d819019
push ebx
push esi
lea eax, [ebp - 8]
push eax
mov esi, 0x6d852100
push esi
lea eax, [ebp - 0xc]
push eax
push edi
push 0x6d802558
push dword [ebp - 4]
mov dword [ebp - 8], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov ebx, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, edi
jne 0x6d819017
cmp dword [ebp - 0xc], 1
jne 0x6d819017
push esi
call fcn.6d818e0a
pop esi
pop ebx
pop edi
leave
ret
Function at 0x6d82bdb3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
je 0x6d82bddc
push esi
push 1
lea eax, [ebp - 4]
push 2
push eax
call dword [sym.imp.msvcrt.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x6d82bde3
jmp 0x6d82be34
mov dword [edi + 8], 2
push dword [ebp + 0x10]
push edi
push esi
call fcn.6d82bd2f
add esp, 0xc
test eax, eax
jne 0x6d82be34
push dword [ebp + 0x14]
push edi
push esi
call fcn.6d82bd2f
add esp, 0xc
test eax, eax
jne 0x6d82be34
push dword [ebp + 0x18]
push edi
push esi
call fcn.6d82bd2f
add esp, 0xc
test eax, eax
jne 0x6d82be34
cmp dword [ebp + 0x1c], 1
je 0x6d82be50
cmp dword [ebp + 0x1c], 2
je 0x6d82be50
lea eax, [ebp + 0xb]
push eax
push edi
push esi
call fcn.6d82bcbf
add esp, 0xc
test eax, eax
je 0x6d82be3b
mov eax, 0x88760314
jmp 0x6d82be8e
mov al, byte [ebp + 0xb]
cmp al, 0x20
je 0x6d82be8c
cmp al, 9
je 0x6d82be8c
cmp al, 0xa
je 0x6d82be8c
cmp al, 0xd
jne 0x6d82be75
jmp 0x6d82be8c
lea eax, [ebp + 0xb]
push eax
push edi
push esi
call fcn.6d82bcbf
add esp, 0xc
test eax, eax
jne 0x6d82be34
mov al, byte [ebp + 0xb]
cmp al, 0x20
je 0x6d82be50
cmp al, 9
je 0x6d82be50
cmp al, 0xa
je 0x6d82be50
cmp al, 0xd
je 0x6d82be50
test esi, esi
je 0x6d82be89
push 1
push 0xffffffffffffffff
push esi
call dword [sym.imp.msvcrt.dll_fseek]
add esp, 0xc
jmp 0x6d82be8c
dec dword [edi + 8]
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x6d82c012
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 0
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jne 0x6d82c060
push 0
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ax, word [ebp - 4]
cmp al, 0x50
jne 0x6d82c052
cmp ah, 0x36
jne 0x6d82c060
xor eax, eax
leave
ret
cmp al, 0x42
jne 0x6d82c060
cmp ah, 0x4d
jne 0x6d82c060
xor eax, eax
inc eax
leave
ret
or eax, 0xffffffff
leave
ret
Function at 0x6d82c363
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
push esi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x6d82c398
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
cmp eax, edi
mov dword [ebp - 0x10], eax
jne 0x6d82c3a2
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x88760313
jmp 0x6d82c443
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
push 0x3c
lea eax, [ebp - 4]
push eax
call fcn.6d8192bf
test eax, eax
je 0x6d82c3c8
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x6d82c449
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
cmp cl, 0x50
jne 0x6d82c3eb
cmp byte [eax + 1], 0x36
jne 0x6d82c3eb
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push dword [ebp - 4]
call fcn.6d82be92
jmp 0x6d82c40c
cmp cl, 0x42
jne 0x6d82c3f6
cmp byte [eax + 1], 0x4d
je 0x6d82c3fb
cmp dword [ebp + 0xc], edi
je 0x6d82c42f
push dword [ebp + 0x10]
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push dword [ebp - 4]
call fcn.6d82babe
add esp, 0x14
test eax, eax
push ebx
je 0x6d82c424
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 4]
call fcn.6d819318
jmp 0x6d82c449
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [ebp - 4]
jmp 0x6d82c44b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
push dword [ebp - 4]
call fcn.6d819318
push 0x88760314
call fcn.6d816de0
pop ecx
xor eax, eax
pop edi
pop ebx
leave
ret

Function at 0x6d82c44f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push 0x6d802734
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
xor esi, esi
cmp ebx, esi
jne 0x6d82c474
mov eax, 0x88760322
jmp 0x6d82c4dc
push edi
push 0x6d802720
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
cmp edi, esi
je 0x6d82c4cd
lea eax, [ebp - 0x104]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x6d82c4a4
mov esi, 0x88760314
jmp 0x6d82c4d2
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push esi
push 0x6d80271c
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x6d82c49d
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call edi
test eax, eax
jge 0x6d82c4d2
mov esi, 0x88760322
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6d82c4e0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
mov esi, ecx
test esi, esi
push edi
mov ebx, eax
jne 0x6d82c561
cmp dword [ebp + 0x18], ecx
je 0x6d82c54e
lea eax, [ebp - 0x204]
push eax
push dword [ebp + 0xc]
call fcn.6d82c44f
test eax, eax
pop ecx
pop ecx
jl 0x6d82c5d8
lea eax, [ebp - 0x204]
push ebx
push eax
call fcn.6d82c28d
pop ecx
mov edi, eax
pop ecx
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, edi
call fcn.6d82c065
test eax, eax
jne 0x6d82c572
push dword [edi + 0x1c]
call fcn.6d819318
push edi
call fcn.6d819318
jmp 0x6d82c5d8
push ebx
push dword [ebp + 0xc]
call fcn.6d82c28d
pop ecx
pop ecx
mov edi, eax
test edi, edi
jne 0x6d82c530
jmp 0x6d82c5d8
push ebx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.6d82c363
add esp, 0xc
jmp 0x6d82c559
cmp ebx, 1
push edi
push dword [ebp + 8]
jne 0x6d82c582
call fcn.6d83135c
jmp 0x6d82c593
cmp ebx, 2
jne 0x6d82c58e
call fcn.6d8313b7
jmp 0x6d82c593
call fcn.6d831412
mov ebx, eax
test ebx, ebx
jne 0x6d82c5a6
push dword [edi + 0x1c]
call fcn.6d819318
push dword [edi + 0x38]
jmp 0x6d82c53e
push edi
push 0x6d82b931
push ebx
call fcn.6d814d8f
test eax, eax
je 0x6d82c5d4
push dword [edi + 0x1c]
call fcn.6d819318
push dword [edi + 0x38]
call fcn.6d819318
push edi
call fcn.6d819318
push ebx
call fcn.6d814d41
xor ebx, ebx
test ebx, ebx
jne 0x6d82c5dc
xor eax, eax
jmp 0x6d82c62e
test esi, esi
jne 0x6d82c602
push dword [ebp + 0xc]
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x100]
push 0x5c
push eax
call fcn.6d83f9f5
pop ecx
pop ecx
jmp 0x6d82c61f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
lea eax, [ebp - 0x100]
push 0x6d802740
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x100]
push eax
push ebx
call fcn.6d81e3bd
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x6d8410d6
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov ecx, dword [ebx + 0xc4]
mov eax, dword [ebx + 0xbc]
mov dword [ebp - 0x10], ecx
xor ecx, ecx
cmp eax, ecx
push esi
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
jle 0x6d841238
mov dword [ebp - 4], ecx
push dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + ecx*4]
push 0
push esi
call fcn.6d82b253
add esp, 0xc
test eax, eax
je 0x6d841228
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x9c]
cmp dword [ebp - 8], eax
jl 0x6d841165
lea eax, [eax + eax*4 + 5]
shl eax, 4
lea ecx, [edi + 0xa0]
push eax
push ecx
mov dword [ebp - 0x14], ecx
call fcn.6d81933c
test eax, eax
jne 0x6d84123b
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
add edx, dword [ebp - 4]
inc dword [edi + 0x9c]
push 0x14
pop ecx
xor eax, eax
mov edi, edx
rep stosd dword es:[edi], eax
jmp 0x6d84116e
mov edx, dword [edi + 0xa0]
add edx, dword [ebp - 4]
mov ecx, dword [ebx + 0x34]
inc dword [ebp - 8]
push 0x50
pop eax
add dword [ebp - 4], eax
test byte [ecx + 0x90], 0x10
je 0x6d84118c
fld1
mov dword [edx], eax
fstp dword [edx + 0x34]
jmp 0x6d841192
mov dword [edx], 0x4c
mov eax, dword [esi + 0x34]
fld1
mov eax, dword [eax*4 + 0x6d850fc0]
mov dword [edx + 4], eax
mov eax, dword [esi + 0x3c]
mov dword [edx + 8], eax
mov eax, dword [esi + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x44]
fstp dword [edx + 0x14]
mov dword [edx + 0x10], eax
test byte [ebx + 0x50], 2
je 0x6d8411d6
fld dword [esi + 0x6c]
fchs
fstp dword [edx + 0x24]
fld dword [esi + 0x70]
fchs
fstp dword [edx + 0x28]
fld dword [esi + 0x74]
fchs
fstp dword [edx + 0x2c]
jmp 0x6d8411e8
mov eax, dword [esi + 0x6c]
mov dword [edx + 0x24], eax
mov eax, dword [esi + 0x70]
mov dword [edx + 0x28], eax
mov eax, dword [esi + 0x74]
mov dword [edx + 0x2c], eax
mov eax, dword [esi + 0x78]
mov dword [edx + 0x18], eax
mov eax, dword [esi + 0x7c]
mov dword [edx + 0x1c], eax
mov eax, dword [esi + 0x80]
mov dword [edx + 0x20], eax
mov eax, dword [esi + 0x4c]
mov dword [edx + 0x30], eax
mov eax, dword [esi + 0x50]
mov dword [edx + 0x44], eax
mov eax, dword [esi + 0x58]
mov dword [edx + 0x48], eax
mov eax, dword [esi + 0x60]
mov dword [edx + 0x38], eax
mov eax, dword [esi + 0x64]
mov dword [edx + 0x3c], eax
mov eax, dword [esi + 0x68]
mov dword [edx + 0x40], eax
mov dword [edx + 0x4c], 1
mov ecx, dword [ebp - 0xc]
inc ecx
cmp ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
jl 0x6d841103
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
add edi, 0x9c
cmp eax, dword [edi]
jge 0x6d84124a
mov dword [edi], eax
pop edi
pop esi
leave
ret