joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a001a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4a0052
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049e0a7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049e07f
jmp 0x4a005e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4a170f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4a1751
call fcn.004a74ec
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4a1751
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4a1748
xor eax, eax
jmp 0x4a1759
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004a175f
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a7a1c
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a7a4a
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4a7a68
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a7982
jmp 0x4a7a68
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a7a68
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a7982
test edi, edi
mov eax, edi
jne 0x4a7a52
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x5d8ad0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x5d87dc
add ecx, ecx
call fcn.005d8b05
inc edi
and edi, ecx
xor dword [ebx], edx
or ecx, ecx
add ebx, 2
mov ecx, ecx
add edi, 0xe81aa88c
cmp ebx, eax
jl fcn.005d8ad0
add ecx, 0x61678fa3
ret
Function at 0x420e00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x472d47
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [esp + 0x14], 0
lea eax, [esp + 0x30]
mov edi, 1
push eax
lea ecx, [esp + 0x10]
mov dword [esp + 0x28], edi
call fcn.0045ddbc
push 0x5c
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 2
call fcn.00456eb3
cmp eax, 0xffffffff
jne 0x420e68
mov esi, dword [esp + 0x2c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, esi
call fcn.0045ddbc
mov dword [esp + 0x14], edi
jmp 0x420f2a
lea edx, [esp + 0x10]
push eax
push edx
lea ecx, [esp + 0x14]
call fcn.00456e3b
mov bl, 3
push 0x5c
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.00456eb3
cmp eax, 0xffffffff
jne 0x420e9d
push 0x47e51c
lea ecx, [esp + 0x10]
call fcn.0045e1d0
jmp 0x420f08
lea ecx, [esp + 0x18]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00456e3b
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 4
call fcn.0045e180
lea ecx, [esp + 0x18]
mov byte [esp + 0x24], bl
call fcn.0045e047
lea edx, [esp + 0x18]
push edi
push edx
lea ecx, [esp + 0x14]
call fcn.00456dbf
mov eax, dword [eax]
push 0x401bbc
push eax
call dword [fcn.00411ed4]
add esp, 8
lea ecx, [esp + 0x18]
test eax, eax
setne bl
call fcn.0045e047
test bl, bl
je 0x420f08
push 0x401bbc
lea ecx, [esp + 0x10]
call fcn.0045e423
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.0045ddbc
lea ecx, [esp + 0x10]
mov dword [esp + 0x14], edi
mov byte [esp + 0x24], 2
call fcn.0045e047
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.0045e047
lea ecx, [esp + 0x30]
mov byte [esp + 0x24], 0
call fcn.0045e047
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x4284d0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4738fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, 0x40a278
mov eax, 0xa
mov dword [esp + 8], esi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], eax
mov dword [esp + 0x1a8], ebx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], eax
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a8], 1
call fcn.004179f0
lea eax, [esp + 0x10]
mov dword [esi], 0x40a274
push eax
push 0x202
call dword [fcn.0040184c]
push 0x47e6b0
call dword [fcn.004012c4]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x70], ebx
call dword [fcn.0040122c]
mov byte [esp + 8], 0x48
mov byte [esp + 9], 0x68
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x73
mov edx, dword [esp + 8]
lea ecx, [esi + 0x26]
mov dword [esi + 0x6c], eax
mov al, 0x74
mov dword [ecx], edx
mov dword [esi + 0x68], ebx
mov byte [esi + 0x78], bl
mov byte [esi + 0x25], bl
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x1a0]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
mov byte [esi + 0x24], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0x2710
mov dword [esi + 0x88], 0x2bf20
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x4284ec
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4738fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov ecx, 0x40a278
mov eax, 0xa
mov dword [esp + 8], esi
mov dword [esi + 0x2c], ecx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], eax
mov dword [esp + 0x1a8], ebx
mov dword [esi + 0x48], ecx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x50], ebx
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x5c], ebx
mov dword [esi + 0x60], eax
lea ecx, [esi + 0x7c]
mov byte [esp + 0x1a8], 1
call fcn.004179f0
lea eax, [esp + 0x10]
mov dword [esi], 0x40a274
push eax
push 0x202
call dword [fcn.0040184c]
push 0x47e6b0
call dword [fcn.004012c4]
push ebx
push ebx
push 1
push ebx
mov dword [esi + 0x70], ebx
call dword [fcn.0040122c]
mov byte [esp + 8], 0x48
mov byte [esp + 9], 0x68
mov byte [esp + 0xa], 0x69
mov byte [esp + 0xb], 0x73
mov edx, dword [esp + 8]
lea ecx, [esi + 0x26]
mov dword [esi + 0x6c], eax
mov al, 0x74
mov dword [ecx], edx
mov dword [esi + 0x68], ebx
mov byte [esi + 0x78], bl
mov byte [esi + 0x25], bl
mov byte [ecx + 4], al
mov ecx, dword [esp + 0x1a0]
mov dword [esi + 0x64], ebx
mov dword [esi + 0x74], ebx
mov byte [esi + 0x24], bl
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], 0x2710
mov dword [esi + 0x88], 0x2bf20
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x429820
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x473aa0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
push 0x402314
lea ecx, [esp + 0x10]
call fcn.0045e0b5
mov eax, dword [0x404774]
mov dword [esp + 0x20], 0
mov dword [esp + 0x14], eax
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
push ecx
lea ecx, [esp + 0x18]
call fcn.0045e180
push 0x47e6b0
mov dword [esp + 0x14], 0x47e6b0
call dword [fcn.004012d0]
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 3
call fcn.0045e047
mov ebx, dword [esi + 0x30]
test ebx, ebx
je 0x42998e
mov edi, dword [esp + 0x28]
mov eax, dword [ebx + 8]
cmp eax, edi
je 0x4298b1
mov ebx, dword [ebx]
test ebx, ebx
jne 0x42989b
jmp 0x42998e
test ebx, ebx
je 0x42998e
push ebp
lea ecx, [edi + 0x14]
call fcn.00417590
lea ecx, [edi + 4]
call fcn.00417590
lea ecx, [edi + 0x24]
call fcn.00417590
lea ecx, [edi + 0x34]
call fcn.00417590
mov eax, dword [esi + 0x58]
mov ebp, dword [esi + 0x50]
test eax, eax
jne 0x429911
mov edx, dword [esi + 0x60]
push 0xc
lea eax, [esi + 0x5c]
push edx
push eax
call fcn.00458bd5
mov ecx, dword [esi + 0x60]
lea edx, [ecx + ecx*2]
dec ecx
test ecx, ecx
lea eax, [eax + edx*4 - 8]
jl 0x429911
inc ecx
mov edx, dword [esi + 0x58]
mov dword [eax], edx
mov dword [esi + 0x58], eax
sub eax, 0xc
dec ecx
jne 0x429903
mov edi, dword [esi + 0x58]
push 1
mov eax, dword [edi]
mov dword [esi + 0x58], eax
mov dword [edi + 4], ebp
mov dword [edi], 0
mov ecx, dword [esi + 0x54]
lea ebp, [edi + 8]
inc ecx
push ebp
mov dword [esi + 0x54], ecx
call fcn.00429d60
mov ecx, dword [esp + 0x2c]
mov dword [ebp], ecx
mov eax, dword [esi + 0x50]
test eax, eax
pop ebp
je 0x429947
mov dword [eax], edi
jmp 0x42994a
mov dword [esi + 0x4c], edi
lea ecx, [esi + 0x2c]
mov dword [esi + 0x50], edi
cmp ebx, dword [ecx + 4]
jne 0x42995c
mov edx, dword [ebx]
mov dword [ecx + 4], edx
jmp 0x429963
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
mov dword [eax], edx
cmp ebx, dword [ecx + 8]
jne 0x429970
mov eax, dword [ebx + 4]
mov dword [ecx + 8], eax
jmp 0x429978
mov edx, dword [ebx]
mov eax, dword [ebx + 4]
mov dword [edx + 4], eax
mov edx, dword [ecx + 0x10]
mov dword [ebx], edx
mov eax, dword [ecx + 0xc]
dec eax
mov dword [ecx + 0x10], ebx
mov dword [ecx + 0xc], eax
jne 0x42998e
call fcn.00429b20
mov eax, dword [esp + 0x10]
push eax
call dword [fcn.004012c8]
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], 0xffffffff
call fcn.0045e047
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret 4
Function at 0x42d0b0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0x55555556
push esi
lea ecx, [ebp*4]
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 4]
push ecx
call dword [fcn.00411ee0]
add esp, 4
mov esi, eax
test eax, eax
jne 0x42d0e3
pop esi
or eax, 0xffffffff
pop ebp
ret
xor ecx, ecx
push edi
test ebp, ebp
jle 0x42d170
mov edi, dword [esp + 0x10]
push ebx
xor edx, edx
mov dl, byte [ecx + edi]
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x42d107
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x42d116
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
mov ebx, edx
inc ecx
sar ebx, 0x12
and ebx, 0x3f
mov bl, byte [ebx + 0x4026d8]
mov byte [esi], bl
mov ebx, edx
sar ebx, 0xc
and ebx, 0x3f
mov bl, byte [ebx + 0x4026d8]
mov byte [esi + 1], bl
mov ebx, edx
sar ebx, 6
and ebx, 0x3f
and edx, 0x3f
cmp ecx, ebp
mov bl, byte [ebx + 0x4026d8]
mov byte [esi + 2], bl
mov dl, byte [edx + 0x4026d8]
mov byte [esi + 3], dl
jle 0x42d15d
mov byte [esi + 3], 0x3d
lea edx, [ebp + 1]
cmp ecx, edx
jle 0x42d168
mov byte [esi + 2], 0x3d
add esi, 4
cmp ecx, ebp
jl 0x42d0f3
pop ebx
mov ecx, dword [esp + 0x18]
mov byte [esi], 0
mov edi, eax
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebp
ret

Function at 0x42d190
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
inc ebx
push ebx
call dword [fcn.00411ee0]
mov ecx, ebx
mov ebp, eax
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
xor eax, eax
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jle 0x42d1dc
mov cl, byte [eax + ebp]
xor cl, 0x19
sub cl, 0x7a
mov byte [eax + ebp], cl
inc eax
cmp eax, ebx
jl 0x42d1cb
lea edx, [esp + 0x14]
push edx
push ebx
push ebp
call fcn.0042d0b0
push ebp
call dword [0x411edc]
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401110
Capabilities:
Access peb ldr_data
Get process heap flags
Write file on windows

Disassembly:
push ebp
mov edx, eax
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x4c
cmp word [eax], 0
je 0x401280
lea esi, [esi]
add eax, 2
cmp word [eax], 0
jne 0x401128
sub eax, edx
sar eax, 1
mov ebx, eax
mov ecx, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 8], edx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov esi, eax
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x2c]
sub esp, 0xc
mov edi, eax
mov dword [esp + 8], edx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ebx
mov dword [esp + 4], 0
mov dword [esp], 0
call ecx
sub esp, 0x20
mov dword [esp], 0xfffffff5
call dword [sym.imp.kernel32.dll_GetStdHandle]
lea edx, [ebp - 0x1c]
sub esp, 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], esi
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
cmp dword [ebp - 0x1c], esi
jae 0x401222
test byte [section..data], 2
jne 0x401250
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], str.Failed_to_write_output_n
mov dword [esp + 8], str.write_to_stdout
mov dword [esp + 4], 0x403000
mov dword [esp], 1
call sym._wine_dbg_log.constprop.0
jmp 0x401222
xor ebx, ebx
jmp 0x401137
Function at 0x401310
Capabilities:
Access peb ldr_data
Get process heap flags
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
xor ebx, ebx
mov edi, ebx
sub esp, 0x3c
mov dword [ebp - 0x24], eax
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 0x28], eax
call eax
mov ecx, 0x1000
mov esi, eax
sub esp, 0xc
mov eax, dword [0x407004]
mov edx, esi
jmp 0x401384
mov ebx, eax
inc eax
movzx ebx, byte [ebx + section..bss]
mov dword [0x407004], eax
cmp bl, 0xa
je 0x401530
lea esi, [edi + 1]
cmp esi, ecx
jge 0x4013e0
mov byte [edx + edi], bl
mov edi, esi
cmp dword [0x407000], eax
ja 0x401360
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0x407000
mov dword [esp + 8], 0x1000
mov dword [esp + 4], 0x406000
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_ReadFile]
mov edx, dword [ebp - 0x1c]
sub esp, 0x14
test eax, eax
je 0x401428
mov eax, dword [0x407000]
test eax, eax
je 0x401428
mov ecx, dword [ebp - 0x20]
mov eax, 1
xor ebx, ebx
jmp 0x401363
add ecx, ecx
mov eax, dword fs:[0x18]
test edx, edx
je 0x401500
mov dword [esp + 0xc], ecx
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapReAlloc]
mov ecx, dword [ebp - 0x1c]
mov edx, eax
sub esp, 0x10
mov eax, dword [0x407004]
jmp 0x40137f
mov ebx, edi
mov esi, edx
test edi, edi
je 0x401548
mov byte [esi + ebx], 0
dec ebx
js 0x401446
add ebx, esi
cmp byte [ebx], 0xd
je 0x401540
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [ebp - 0x20], edx
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x18
mov ebx, eax
add eax, eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov edi, dword fs:[0x18]
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
mov edx, dword [ebp - 0x20]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov dword [esp], 0
call edx
sub esp, 0x18
mov dword [esp + 8], esi
mov dword [esp + 4], 0
mov eax, dword [edi + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov ecx, dword [ebp - 0x1c]
sub esp, 0xc
lea esp, [ebp - 0xc]
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ecx
mov dword [esp + 4], 0
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x1c], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [ebp - 0x28]
call eax
mov ecx, dword [ebp - 0x1c]
mov edx, eax
sub esp, 0xc
mov eax, dword [0x407004]
jmp 0x40137f
mov ebx, edi
mov esi, edx
jmp 0x401434
mov byte [ebx], 0
jmp 0x401446
xor ecx, ecx
jmp 0x4014f6
Function at 0x401e00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401e5b
cmp byte [esi + ebx - 1], 0xa
je 0x401e2f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4070c4], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x4028c0
Capabilities:
Get process heap force flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
Function at 0x416050
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4763cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0046ac7a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4160d2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0046865a
mov eax, dword [eax]
push 0x48e1c0
push eax
call fcn.0045b3b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046af05
test bl, bl
je 0x4160d2
push 0x48e1c0
lea ecx, [esp + 0xc]
call fcn.0046b295
push 0x491d34
lea ecx, [esp + 0xc]
call fcn.0046b295
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41610e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046af05
jmp 0x4161d9
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x416192
lea edx, [esp + 0x7c]
push 0x491d30
push edx
call fcn.0045b3b4
add esp, 8
test eax, eax
je 0x416192
lea eax, [esp + 0x7c]
push 0x491d2c
push eax
call fcn.0045b3b4
add esp, 8
test eax, eax
je 0x416192
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x416122
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0046af05
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x4169d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x416a32
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x416a40
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47644b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4981fc]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x416b78
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x416aa6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046af05
xor eax, eax
jmp 0x416bef
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046b042
push esi
lea ecx, [esp + 0xc]
call fcn.0046b2d1
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x416bcd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.004169d0
test eax, eax
jne 0x416bcd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.004169d0
test eax, eax
jne 0x416bcd
lea eax, [esp + 0x14]
push 0x491d48
push eax
call fcn.0045c4c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x416bac
lea ecx, [esp + 0x14]
push 0x491d44
push ecx
call fcn.0045c440
mov esi, eax
add esp, 8
test esi, esi
jne 0x416bac
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x416baf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046aff2
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x416abe
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046af05
xor eax, eax
jmp 0x416bef
mov byte [esi], 0
push 0x491d40
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0046af05
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4