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

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
push ebx
mov ebx, dword [esp + 0x10]
cmp ecx, dword [ebx + 4]
push esi
push edi
jge 0x100b1be9
mov esi, ebx
mov ebx, eax
jmp 0x100b1beb
mov esi, eax
mov eax, dword [esi + 4]
mov edi, dword [esp + 0x10]
cmp eax, dword [edi + 8]
jg 0x100b1bfb
mov eax, edi
jmp 0x100b1c05
push eax
push edi
call fcn.10034840
add esp, 8
test eax, eax
jne 0x100b1c0d
pop edi
pop esi
pop ebx
ret
xor eax, eax
cmp dword [ebx + 4], eax
jle 0x100b1c29
mov edx, dword [esi]
mov ecx, dword [ebx]
mov edx, dword [edx + eax*4]
xor edx, dword [ecx + eax*4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [ebx + 4]
jl 0x100b1c14
cmp eax, dword [esi + 4]
jge 0x100b1c40
mov edi, edi
mov edx, dword [esi]
mov edx, dword [edx + eax*4]
mov ecx, dword [edi]
mov dword [ecx + eax*4], edx
inc eax
cmp eax, dword [esi + 4]
jl 0x100b1c30
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
test eax, eax
jle 0x100b1c61
mov ecx, dword [edi]
lea ecx, [ecx + eax*4 - 4]
mov edx, dword [ecx]
sub ecx, 4
test edx, edx
jne 0x100b1c5e
dec eax
test eax, eax
jg 0x100b1c50
mov dword [edi + 4], eax
cmp dword [edi + 4], 0
jne 0x100b1c6e
mov dword [edi + 0xc], 0
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x100d6830
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xa4
call fcn.100e42e0
mov eax, dword [0x1014a240]
xor eax, esp
mov dword [esp + 0xa0], eax
mov ecx, dword [esp + 0xac]
mov eax, dword [esp + 0xa8]
push ebx
mov ebx, dword [esp + 0xb8]
push ebp
push esi
mov esi, dword [ecx + 4]
push edi
mov edi, dword [esp + 0xc0]
mov dword [esp + 0x18], esi
sub esi, edi
xor ebp, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebp
cmp ebx, edi
jae 0x100d689a
push str.orig_len___md_size
push 0xf8
push str.._ssl_s3_cbc.c
call fcn.10029160
add esp, 0xc
cmp edi, 0x40
jbe 0x100d68b6
push str.md_size___EVP_MAX_MD_SIZE
push 0xf9
push str.._ssl_s3_cbc.c
call fcn.10029160
add esp, 0xc
lea ecx, [esp + 0x30]
neg ecx
and ecx, 0x3f
lea edx, [edi + 0x100]
lea ecx, [esp + ecx + 0x30]
mov dword [esp + 0x1c], ecx
cmp ebx, edx
jbe 0x100d68e0
mov eax, ebx
sub eax, edi
sub eax, 0x100
mov dword [esp + 0x10], eax
mov ebp, eax
mov eax, edi
and eax, 0xfffffffe
shl eax, 0x17
sub eax, ebp
add eax, esi
xor edx, edx
div edi
push edi
push 0
push ecx
mov ebx, edx
mov dword [esp + 0x30], ebx
call fcn.100e1a10
mov edx, dword [esp + 0x1c]
add esp, 0xc
xor esi, esi
cmp edx, dword [esp + 0xc4]
jae 0x100d69bf
mov ecx, dword [esp + 0x18]
mov eax, dword [esp + 0x14]
sub edx, ecx
mov ebx, ecx
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0xbc]
mov edx, dword [edx + 0xc]
shr eax, 0x1f
shr ebx, 0x1f
sub ecx, dword [esp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], edx
jmp 0x100d6958
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x10]
add ecx, ebx
shr ecx, 0x1f
xor cl, al
mov edx, ebp
shr edx, 0x1f
xor al, dl
or cl, al
mov eax, ebx
mov bl, byte [esp + 0x2c]
shr eax, 0x1f
xor al, bl
xor bl, dl
or al, bl
xor al, dl
dec al
xor cl, dl
mov edx, dword [esp + 0x14]
mov dl, byte [edx + ebp]
not al
inc dword [esp + 0x10]
and al, dl
dec cl
and al, cl
mov ecx, dword [esp + 0x1c]
or byte [esi + ecx], al
inc esi
mov eax, esi
sub eax, edi
xor eax, edi
mov ecx, esi
xor ecx, edi
or eax, ecx
xor eax, esi
shr eax, 0x1f
neg eax
inc ebp
and esi, eax
cmp ebp, dword [esp + 0xc4]
jb 0x100d6950
mov ebx, dword [esp + 0x24]
xor eax, eax
test edi, edi
jbe 0x100d69f6
mov esi, dword [esp + 0x1c]
mov edx, ebx
xor edx, 0x20
mov cl, byte [edx + esi]
mov dl, byte [ebx + esi]
mov ecx, dword [esp + 0x28]
mov byte [ecx + eax], dl
inc ebx
mov edx, ebx
sub edx, edi
xor edx, edi
mov ecx, ebx
xor ecx, edi
or edx, ecx
xor edx, ebx
shr edx, 0x1f
neg edx
inc eax
and ebx, edx
cmp eax, edi
jb 0x100d69c5
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100e1a8a
add esp, 0xa4
ret
Function at 0x100e1a8a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1014a240]
jne 0x100e1a94
repz ret
jmp fcn.100ea5fb
Function at 0x100f9086
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.100ea773
and dword [ebp - 4], 0
cmp dword [0x101554fc], 0
mov ebx, eax
jne 0x100f9137
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100f91e8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x101391d4
push edi
call esi
test eax, eax
je 0x100f91e8
push eax
call fcn.100ea701
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x101554fc], eax
call esi
push eax
call fcn.100ea701
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10155500], eax
call esi
push eax
call fcn.100ea701
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10155504], eax
call esi
push eax
call fcn.100ea701
pop ecx
mov dword [0x1015550c], eax
test eax, eax
je 0x100f9137
push 0x1013917c
push edi
call esi
push eax
call fcn.100ea701
pop ecx
mov dword [0x10155508], eax
mov eax, dword [0x10155508]
cmp eax, ebx
je 0x100f918f
cmp dword [0x1015550c], ebx
je 0x100f918f
push eax
call fcn.100ea77c
push dword [0x1015550c]
mov esi, eax
call fcn.100ea77c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x100f918f
test edi, edi
je 0x100f918f
call esi
test eax, eax
je 0x100f9186
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x100f9186
test byte [ebp - 0xc], 1
jne 0x100f918f
or dword [ebp + 0x10], 0x200000
jmp 0x100f91c8
mov eax, dword [0x10155500]
cmp eax, ebx
je 0x100f91c8
push eax
call fcn.100ea77c
pop ecx
test eax, eax
je 0x100f91c8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x100f91c8
mov eax, dword [0x10155504]
cmp eax, ebx
je 0x100f91c8
push eax
call fcn.100ea77c
pop ecx
test eax, eax
je 0x100f91c8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x101554fc]
call fcn.100ea77c
pop ecx
test eax, eax
je 0x100f91e8
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100f91ea
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402053
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
mov esi, 0x80
push edi
push esi
push dword [ebp + 0xc]
lea eax, [ebp - 0x84]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00402fb7
cmp dword [0x4162f0], edi
jne 0x4020b8
push esi
lea eax, [ebp - 0x84]
push 0x40b1dc
push eax
call fcn.00401fda
push esi
lea eax, [ebp - 0x84]
push dword [ebp + 0x10]
push eax
call fcn.00401fda
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
jmp 0x4020cf
lea eax, [ebp - 4]
push eax
push 1
lea eax, [ebp - 0x84]
push edi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x4020e3
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
call fcn.00402fb7
jmp 0x402138
cmp dword [0x4162f0], edi
jne 0x4020fe
lea eax, [ebp + 0x1c]
push eax
push dword [ebp + 0x18]
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
jmp 0x40211d
lea eax, [ebp + 0x1c]
mov dword [ebp + 0xc], 1
push eax
lea eax, [ebp + 0xc]
push dword [ebp + 0x18]
push eax
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40212f
push dword [ebp + 0x1c]
push dword [ebp + 0x14]
push dword [ebp + 0x18]
call fcn.00402fb7
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
leave
ret 0x18

Function at 0x40213e
Capabilities:
Get common file path
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
push ebx
push esi
xor ebx, ebx
xor esi, esi
cmp dword [ebp + 0x10], 0xc
je 0x4021df
cmp dword [ebp + 0x10], 0x10
je 0x4021b9
cmp dword [ebp + 0x10], 0x26
jne 0x402215
cmp dword [0x4162f0], ebx
mov byte [ebp - 0x204], bl
mov esi, 0x201
je 0x40219b
lea eax, [ebp - 0x204]
push esi
push eax
push 0x416230
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push 0x80000002
call fcn.00402053
cmp byte [ebp - 0x204], bl
jne 0x402212
lea eax, [ebp - 0x204]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov byte [ebp - 0x202], bl
jmp 0x402212
cmp dword [0x4162f0], ebx
mov byte [ebp - 0x204], bl
je 0x402212
lea eax, [ebp - 0x204]
push 0x201
push eax
push 0x416230
push str.Desktop
jmp 0x402203
cmp dword [0x4162f0], ebx
mov byte [ebp - 0x204], bl
je 0x402212
lea eax, [ebp - 0x204]
push 0x201
push eax
push 0x416230
push str.Personal
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_folders
push 0x80000001
call fcn.00402053
push 1
pop esi
cmp esi, ebx
je 0x402236
cmp dword [ebp + 0xc], ebx
je 0x402234
lea eax, [ebp - 0x204]
push 0x104
push eax
push dword [ebp + 0xc]
call fcn.00402dc0
jmp 0x402236
xor esi, esi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40303a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], 1
jbe 0x403095
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x32]
mov eax, dword [eax + 2]
mov dword [ebp + 8], eax
mov ebx, 0x10000
cmp dword [ebp + 0xc], ebx
ja 0x403069
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0
push eax
lea eax, [esi + edi]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403091
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x403091
add esi, eax
sub dword [ebp + 0xc], eax
jne 0x40305c
jmp 0x403095
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x4030cb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 4], 1
jbe 0x403126
mov eax, dword [ebp + 8]
mov edi, dword [eax + 0x32]
mov eax, dword [eax + 2]
mov dword [ebp + 8], eax
mov ebx, 0x10000
cmp dword [ebp + 0xc], ebx
ja 0x4030fa
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 8]
push 0
push eax
lea eax, [esi + edi]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403122
mov eax, dword [ebp - 8]
cmp eax, ebx
jne 0x403122
add esi, eax
sub dword [ebp + 0xc], eax
jne 0x4030ed
jmp 0x403126
and dword [ebp - 4], 0
mov eax, dword [ebp + 0x10]
pop edi
mov dword [eax], esi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc
Function at 0x4033b9
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LocalAlloc]
push esi
push edi
push 0x46
push 0x40
call ebx
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x40346b
push 0x40000
push 0x40
mov word [esi], 0x46
call ebx
cmp eax, edi
mov dword [ebp - 4], eax
mov dword [esi + 0x32], eax
jne 0x4033fb
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x40346b
lea eax, [ebp - 0x18]
push eax
call fcn.0040339d
mov ebx, dword [ebp + 0x10]
push edi
push dword [ebp + 0x18]
lea eax, [ebp - 0x18]
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x416290]
cmp eax, 0xffffffff
mov dword [esi + 2], eax
jne 0x403455
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x403455
test bl, 1
je 0x403455
push edi
lea eax, [ebp - 0x18]
push dword [ebp + 0x18]
or ebx, 2
push dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [0x416290]
mov dword [esi + 2], eax
mov eax, dword [esi + 2]
cmp eax, 0xffffffff
jne 0x403470
push dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
push esi
call edi
or esi, 0xffffffff
jmp 0x4034c2
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x22], edi
mov dword [esi + 6], ecx
mov ecx, dword [ebp - 4]
add ecx, 0x40000
mov dword [esi + 0x1a], edi
mov dword [esi + 0x36], ecx
lea ecx, [ebp - 8]
push ecx
push eax
mov dword [esi + 0xe], 0x40000
mov dword [esi + 0x26], edi
mov dword [esi + 0x1e], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0xc], eax
mov dword [esi + 0x12], eax
mov eax, dword [ebp - 8]
push edi
push esi
mov dword [esi + 0x16], eax
call fcn.0040336a
mov eax, dword [esi + 0xe]
push esi
add eax, dword [esi + 0x32]
mov dword [esi + 0x36], eax
call fcn.00403179
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x14

Function at 0x403d7f
Capabilities:
Terminate process

Disassembly:
mov ecx, dword [0x4162dc]
push esi
mov eax, dword [ecx + 0x74]
cmp eax, 0xffffffff
je 0x403db8
mov ecx, dword [ecx + 0x3a4c]
push eax
cmp byte [ecx + 5], 0x64
je 0x403db3
call fcn.00403a2d
mov eax, dword [0x4162dc]
add eax, 0x140fe
push eax
call dword [0x4162b0]
jmp 0x403db8
call fcn.004034fe
mov eax, dword [0x4162dc]
push dword [eax + 0x70]
call fcn.00403a2d
mov eax, dword [0x4162dc]
mov ecx, dword [0x41634c]
or dword [eax + 0x74], 0xffffffff
or dword [eax + 0x70], 0xffffffff
test ecx, ecx
je 0x403dea
push 0
push ecx
call dword [sym.imp.USER32.dll_EndDialog]
mov eax, dword [0x4162dc]
mov ecx, dword [eax + 0x3a4c]
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
test ecx, ecx
je 0x403e02
push ecx
call esi
mov eax, dword [0x4162dc]
push 0x2010
push str.WinSFX32U
push dword [eax + 0x190]
push 0
call dword [0x41630c]
mov eax, dword [0x416294]
test eax, eax
je 0x403e2a
push eax
call dword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov eax, dword [0x4162dc]
test eax, eax
je 0x403e36
push eax
call esi
call fcn.00403d50
push dword [esp + 8]
call sub.CRTDLL.dll_exit
pop ecx
pop esi
ret 4
Function at 0x404469
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
dec ecx
test eax, eax
mov eax, dword [0x4162dc]
jle 0x4044b4
push edi
push esi
mov esi, dword [esp + 0xc]
push ebx
lea edi, [ecx + 1]
mov cx, word [eax + 0x39c]
movzx ebx, byte [esi]
mov edx, ecx
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, ch
mov cx, word [eax + edx*2 + 0x194]
xor cx, bx
inc esi
dec edi
mov word [eax + 0x39c], cx
jne 0x404483
pop ebx
pop esi
pop edi
mov ax, word [eax + 0x39c]
ret 8

Function at 0x404760
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
push edi
push 1
lea eax, [ebp - 0x68]
pop edi
xor esi, esi
push 0x64
push eax
push 0x40b638
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4047cf
mov cl, byte [ebp - 0x68]
lea eax, [ebp - 0x68]
test cl, cl
je 0x4047a6
cmp cl, 0x2b
je 0x4047a6
cmp cl, 0x2d
je 0x4047a6
cmp cl, 0x30
jb 0x4047a0
cmp cl, 0x39
jbe 0x4047a6
mov cl, byte [eax + 1]
inc eax
jmp 0x404788
mov cl, byte [eax]
cmp cl, 0x2d
jne 0x4047b1
xor edi, edi
jmp 0x4047b6
cmp cl, 0x2b
jne 0x4047b7
inc eax
mov cl, byte [eax]
cmp cl, 0x30
jb 0x4047cf
cmp cl, 0x39
ja 0x4047cf
movzx ecx, cl
lea edx, [esi + esi*4]
lea esi, [ecx + edx*2 - 0x30]
jmp 0x4047b6
mov eax, esi
push 0
imul eax, eax, 0xe10
cdq
push 0x5f5e100
push edx
push eax
call fcn.00409370
mov ecx, dword [ebp + 8]
test edi, edi
je 0x4047f8
mov esi, dword [ecx]
sub esi, eax
mov eax, dword [ecx + 4]
sbb eax, edx
jmp 0x404801
add eax, dword [ecx]
adc edx, dword [ecx + 4]
mov esi, eax
mov eax, edx
mov dword [ecx], esi
pop edi
mov dword [ecx + 4], eax
pop esi
leave
ret 4
Function at 0x407d0f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push 5
push dword [ebp + 0xc]
call fcn.00402e31
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push esi
mov edi, eax
push dword [ebp + 8]
add edi, 0x46
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp + 8], eax
je 0x407e9b
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push 0x40
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
test esi, esi
je 0x407e8f
push 0x12
mov dword [ebp - 4], ebx
mov dword [ebp + 0xc], esi
pop eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
mov cl, byte [ecx]
mov byte [edx], cl
inc dword [ebp + 0xc]
inc dword [ebp - 4]
dec eax
jne 0x407d76
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00407cd6
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00407cd6
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00407cd6
mov eax, dword [esi]
test al, 0x40
jne 0x407ddd
mov cx, word [0x416240]
or al, 0x40
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
mov word [eax], cx
mov eax, dword [0x4162dc]
add dword [ebp + 0xc], 2
add eax, 0xc0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
jmp 0x407e28
cmp dword [0x4162f0], 0
je 0x407e25
mov eax, dword [ebp + 0xc]
mov cx, word [0x416240]
mov word [eax], cx
mov eax, dword [0x4162dc]
add eax, 0xc0
add dword [ebp + 0xc], 2
add dword [ebp - 4], 2
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00407cd6
mov eax, dword [ebp - 4]
movzx eax, word [eax]
add dword [ebp - 4], 2
test eax, eax
jne 0x407e15
jmp 0x407e32
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00407cd6
mov eax, dword [ebp + 0xc]
sub eax, esi
and eax, 3
je 0x407e43
push 4
pop ecx
sub ecx, eax
mov eax, ecx
test eax, eax
jle 0x407e53
mov ecx, dword [ebp + 0xc]
and byte [ecx], 0
inc dword [ebp + 0xc]
dec eax
jne 0x407e47
mov eax, dword [ebp - 4]
sub eax, ebx
and eax, 3
je 0x407e64
push 4
pop ecx
sub ecx, eax
mov eax, ecx
test eax, eax
jle 0x407e6b
add dword [ebp - 4], eax
lea eax, [edi + ebx - 0x46]
cmp dword [ebp - 4], eax
mov dword [ebp - 8], eax
ja 0x407e8f
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov al, byte [eax]
mov byte [ecx], al
inc dword [ebp + 0xc]
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jbe 0x407e77
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x408a58
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
push edi
xor edi, edi
push str.SHELL32.DLL
mov dword [0x416338], edi
mov dword [0x4162e8], edi
mov dword [0x416360], edi
mov dword [0x416320], edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
mov dword [0x416258], eax
je 0x408b86
cmp dword [0x4162f0], 0x10
jl 0x408ae4
push str.SHBrowseForFolderW
push eax
call esi
push str.SHGetPathFromIDListW
mov dword [0x41628c], eax
push dword [0x416258]
mov dword [0x416338], eax
call esi
push str.ShellExecuteW
mov dword [0x4162bc], eax
push dword [0x416258]
mov dword [0x4162e8], eax
call esi
cmp eax, edi
mov dword [0x416324], eax
je 0x408b37
mov dword [0x416320], eax
jmp 0x408b37
push str.SHBrowseForFolderA
push eax
call esi
push str.SHGetPathFromIDListA
mov dword [0x416284], eax
push dword [0x416258]
mov dword [0x416338], 0x401986
call esi
push str.ShellExecuteA
mov dword [0x4162b8], eax
push dword [0x416258]
mov dword [0x4162e8], 0x4018b2
call esi
cmp eax, edi
mov dword [0x416328], eax
je 0x408b37
mov dword [0x416320], 0x4022d3
mov eax, dword [0x4162f0]
cmp eax, 0x10
jl 0x408b62
test al, 2
je 0x408b86
push str.SHGetSpecialFolderPathW
push dword [0x416258]
call esi
cmp eax, edi
mov dword [0x416358], eax
je 0x408b86
mov dword [0x416360], eax
jmp 0x408b86
test al, 2
je 0x408b86
push str.SHGetSpecialFolderPathA
push dword [0x416258]
call esi
cmp eax, edi
mov dword [0x416354], eax
je 0x408b86
mov dword [0x416360], 0x401f8f
cmp dword [0x416360], edi
jne 0x408b98
mov dword [0x416360], fcn.0040213e
cmp dword [0x4162f0], edi
je 0x408bbd
push str.OLE32.DLL
call ebx
cmp eax, edi
mov dword [0x416274], eax
je 0x408bbd
push str.CoTaskMemFree
push eax
call esi
mov dword [0x416348], eax
test byte [0x4162f0], 1
je 0x408be5
cmp dword [0x416338], edi
je 0x408bde
cmp dword [0x4162e8], edi
je 0x408bde
cmp dword [0x416348], edi
jne 0x408be5
call fcn.00403d50
jmp 0x408be8
push 1
pop edi
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x409090
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a0f0
push 0x4091e0
push eax
mov eax, dword [0x40c004]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x40c000]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.004091d6
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x40bffc]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x418004
push section..CRT
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x40912b
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x409123
cmp al, 0x22
jne 0x409118
cmp byte [esi], 0x22
jne 0x409135
inc esi
jmp 0x409135
cmp al, 0x20
jbe 0x409135
inc esi
cmp byte [esi], 0x20
ja 0x40912f
cmp byte [esi], 0
je 0x409145
cmp byte [esi], 0x20
ja 0x409145
inc esi
cmp byte [esi], 0
jne 0x40913a
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x409165
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x4091a1
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x8003b13
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x800438c], 0x30
mov dword [0x8004394], 0x8003424
mov dword [0x8004390], 2
mov dword [0x8004398], 0
mov dword [0x800439c], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b56
mov dword [0x80043a0], eax
mov dword [0x80043b4], 0x80041cc
mov dword [0x80043ac], 0xf
mov dword [0x80040ee], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043a4], eax
mov dword [0x80043b8], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x80040f6], ebp
mov dword [0x80043a8], eax
push 0x800438c
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x800440c], eax
push 0
push dword [0x80040ee]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x8004404], eax
push 1
push dword [0x8004404]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x8004404]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c14
xor edi, edi
lea ebx, [0x80043bc]
jmp 0x8003c2c
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c1e
jmp 0x8003c40
mov eax, dword [0x80043c4]
call 0x8002b1f
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx