joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401207
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x4182d8]
and dword [ebp - 0x18], 0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x28], eax
mov eax, dword [0x4182dc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x30], eax
mov esi, dword [edi]
mov edx, dword [edi + 4]
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], edx
call fcn.00401200
mov ebx, dword [ebp - 0x18]
add ebx, 0x23f
cmp dword [0xb03ee4], 0x14
jne 0x401265
push 0
lea eax, [ebp - 0x830]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeW]
mov edx, dword [ebp - 0xc]
mov ecx, dword [0x4182e0]
mov eax, dword [0x4182e4]
push 0x20
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], eax
pop edi
mov dword [ebp - 0x1c], 2
add dword [ebp - 0x1c], 3
mov eax, esi
mov dword [ebp - 0xc], 0xedeb2e40
shl eax, 4
add eax, ecx
cmp dword [0xb03ee4], 0xfa9
mov dword [ebp - 8], eax
mov eax, dword [0xb03ee0]
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp dword [0xb03ee4], 0x3eb
mov dword [0xb03ee0], eax
mov eax, dword [0xb03e38]
cmove eax, dword [ebp - 0xc]
mov dword [0xb03e38], eax
lea eax, [ebx + esi]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
shr eax, 5
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
and dword [ebp - 0x10], 0
mov dword [0xb03edc], 0xf4ea3dee
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 4]
sub edx, eax
mov dword [ebp - 0x14], eax
mov eax, edx
mov dword [ebp - 0xc], edx
shl eax, 4
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 8], eax
mov ecx, dword [ebp - 0x1c]
lea eax, [ebx + edx]
and dword [ebp - 4], 0
mov dword [ebp - 0x18], eax
mov eax, edx
shr eax, cl
add eax, dword [ebp - 0x30]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
add dword [ebp - 4], eax
mov eax, dword [ebp - 4]
xor dword [ebp - 0x10], eax
cmp dword [0xb03ee4], 0xb03
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
jne 0x401363
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthA]
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor eax, dword [ebp - 0x14]
add ebx, 0x61c88647
mov ecx, dword [ebp - 0x24]
sub esi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], esi
dec edi
jne 0x401279
mov edi, dword [ebp - 0x2c]
mov dword [edi], esi
mov dword [edi + 4], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c062
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417f10]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00407f6c
mov dword [ebp - 0x14], eax
cmp dword [0x45f6d4], esi
jne 0x40c155
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c0e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c235
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c235
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c235
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x45f6d4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x45f6d8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x45f6dc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45f6e4], eax
test eax, eax
je 0x40c152
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x45f6e0], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c17a
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c16d
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c18f
push 4
pop eax
jmp 0x40c237
cmp dword [ebp - 0x14], esi
je 0x40c18f
push dword [0x45f6d4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c174
mov eax, dword [0x45f6e0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c1ed
cmp dword [0x45f6e4], edi
je 0x40c1ed
push eax
call ebx
push dword [0x45f6e4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c1ed
test eax, eax
je 0x40c1ed
call ecx
test eax, eax
je 0x40c1e2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c1e2
test byte [ebp - 8], 1
jne 0x40c1ed
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c21d
mov eax, dword [0x45f6d8]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
call eax
mov esi, eax
test esi, esi
je 0x40c21a
mov eax, dword [0x45f6dc]
cmp eax, edi
je 0x40c21a
push eax
call ebx
test eax, eax
je 0x40c21a
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x45f6d4]
call ebx
test eax, eax
je 0x40c235
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c237
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040a8
mov esp, ebp
pop ebp
ret
Function at 0x401b40
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
mov esi, dword [esp + 0x5c]
mov eax, dword [esi + 4]
test eax, eax
jne 0x401b54
mov eax, 0x40d144
push 0
push eax
call fcn.0040c416
add esp, 8
test eax, eax
jne 0x401bda
push edi
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov dword [esp + 8], eax
pop edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x401b8c
mov eax, 0x40d144
lea ecx, [esp + 4]
lea edx, [esp + 0x14]
push ecx
push edx
push 0
push 0
push 0x4000020
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x401bda
mov eax, dword [esp + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call esi
mov al, 1
pop esi
add esp, 0x54
ret
xor al, al
pop esi
add esp, 0x54
ret

Function at 0x401bf0
Capabilities:
Delete file

Disassembly:
mov eax, dword [0x411e14]
sub esp, 0x10
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x401c11
mov ecx, dword [0x411e18]
mov edx, ecx
sub edx, eax
test edx, 0xfffffff0
jne 0x401c18
xor al, al
pop ebx
add esp, 0x10
ret
push esi
mov esi, eax
cmp esi, ecx
je 0x401c90
push edi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
lea eax, [esp + 0x10]
push esi
push eax
call fcn.004046f9
lea ecx, [esp + 0x18]
push ecx
call fcn.00401b40
add esp, 0x10
test al, al
je 0x401c53
mov eax, dword [esp + 0x10]
cmp eax, ebx
jne 0x401c50
mov eax, 0x40d144
push eax
call edi
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x401c77
mov al, byte [ecx - 1]
cmp al, bl
je 0x401c6d
cmp al, 0xff
je 0x401c6d
dec al
mov byte [ecx - 1], al
jmp 0x401c77
dec ecx
push ecx
call fcn.004049bf
add esp, 4
mov eax, dword [0x411e18]
add esi, 0x10
cmp esi, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
jne 0x401c26
pop edi
pop esi
mov al, 1
pop ebx
add esp, 0x10
ret
Function at 0x4032bb
Capabilities:
Delete registry key

Disassembly:
mov eax, 0x40c5f4
call fcn.00405a5c
sub esp, 0x5c
push esi
mov esi, ecx
push 3
mov eax, dword [esi]
call dword [eax]
cmp dword [esi + 0x18], 0
je 0x40337f
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004034b5
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00403512
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 4]
setne al
test al, al
je 0x403362
lea eax, [ebp - 0x4c]
lea ecx, [ebp - 0x18]
push eax
call fcn.00404877
mov edx, dword [eax]
and dword [ebp - 4], 0
push 3
mov ecx, eax
call dword [edx]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00403258
lea eax, [ebp - 0x68]
lea ecx, [ebp - 0x18]
push eax
call fcn.00404877
mov edx, dword [eax]
mov ecx, eax
mov dword [ebp - 4], 1
call dword [edx + 0xc]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
call fcn.00403258
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.004034b5
push eax
lea ecx, [ebp - 0x18]
call fcn.0040485b
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.00403512
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [eax + 4]
jne 0x4032f1
mov eax, dword [esi + 8]
test eax, eax
jne 0x40336e
mov eax, 0x40d144
push eax
push dword [esi + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret

Function at 0x403720
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], 3
mov dword [ebp + 0xc], eax
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x40373d
mov eax, 0x40d144
lea edx, [ebp + 0xc]
push edx
lea edx, [ebp - 4]
push dword [ebp + 8]
push edx
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40376e
lea ecx, [ebp + 8]
call fcn.00403772
lea eax, [ebp + 8]
push 0x40e080
push eax
call fcn.00405a7b
leave
ret 8
Function at 0x4037a2
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40c614
call fcn.00405a5c
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], 1
cmp eax, ebx
jne 0x4037cc
mov eax, 0x40d144
lea ecx, [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea ecx, [ebp - 0x14]
push ebx
push ecx
push ebx
push eax
push dword [esi + 4]
call edi
cmp eax, ebx
je 0x4037fb
lea eax, [ebp + 8]
push 0x40e080
push eax
mov dword [ebp + 8], vtable.MXRegistryReadFail.0
call fcn.00405a7b
cmp dword [ebp - 0x14], 1
jne 0x403878
cmp dword [ebp - 0x10], ebx
jbe 0x403878
push dword [ebp - 0x10]
call fcn.00405905
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
pop ecx
jne 0x40381e
mov eax, 0x40d144
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
push ebx
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x403853
push dword [ebp - 0x18]
call fcn.004049bf
lea eax, [ebp + 8]
mov dword [esp], 0x40e080
push eax
mov dword [ebp + 8], vtable.MXRegistryReadFail.0
call fcn.00405a7b
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x403863
push esi
call fcn.00405e00
pop ecx
jmp 0x403865
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.0040358c
push esi
call fcn.004049bf
pop ecx
jmp 0x4038ab
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.004022c0
push dword [0x40d140]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.004020c0
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
call fcn.004022c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x4037b0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x40c614
call fcn.00405a5c
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [ebp - 0x10], ebx
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x14], 1
cmp eax, ebx
jne 0x4037cc
mov eax, 0x40d144
lea ecx, [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push ecx
lea ecx, [ebp - 0x14]
push ebx
push ecx
push ebx
push eax
push dword [esi + 4]
call edi
cmp eax, ebx
je 0x4037fb
lea eax, [ebp + 8]
push 0x40e080
push eax
mov dword [ebp + 8], vtable.MXRegistryReadFail.0
call fcn.00405a7b
cmp dword [ebp - 0x14], 1
jne 0x403878
cmp dword [ebp - 0x10], ebx
jbe 0x403878
push dword [ebp - 0x10]
call fcn.00405905
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0xc]
cmp eax, ebx
pop ecx
jne 0x40381e
mov eax, 0x40d144
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x14]
push dword [ebp - 0x18]
push ecx
push ebx
push eax
push dword [esi + 4]
call edi
test eax, eax
je 0x403853
push dword [ebp - 0x18]
call fcn.004049bf
lea eax, [ebp + 8]
mov dword [esp], 0x40e080
push eax
mov dword [ebp + 8], vtable.MXRegistryReadFail.0
call fcn.00405a7b
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x403863
push esi
call fcn.00405e00
pop ecx
jmp 0x403865
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.0040358c
push esi
call fcn.004049bf
pop ecx
jmp 0x4038ab
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.004022c0
push dword [0x40d140]
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push ebx
push eax
call fcn.004020c0
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x28]
call fcn.004022c0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x403920
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x40393a
mov eax, 0x40d144
lea edx, [ebp - 4]
push edx
lea edx, [ebp - 8]
push dword [ebp + 8]
push edx
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40396b
lea ecx, [ebp + 8]
call fcn.00403772
lea eax, [ebp + 8]
push 0x40e080
push eax
call fcn.00405a7b
leave
ret 4

Function at 0x40396f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x40397e
mov eax, 0x40d144
push dword [ebp + 0xc]
push dword [ebp + 8]
push 3
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x4039ac
lea ecx, [ebp + 0xc]
call fcn.004039b0
lea eax, [ebp + 0xc]
push 0x40e110
push eax
call fcn.00405a7b
pop ebp
ret 8
Function at 0x4039c4
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
mov edi, 0x40d144
mov edx, dword [eax + 8]
mov eax, dword [eax + 4]
test eax, eax
jne 0x4039dd
mov eax, edi
mov esi, dword [ecx + 0xc]
test esi, esi
jne 0x4039e6
mov esi, edi
inc edx
push edx
push eax
push 1
push 0
push esi
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
je 0x403a13
lea ecx, [ebp + 8]
call fcn.004039b0
lea eax, [ebp + 8]
push 0x40e110
push eax
call fcn.00405a7b
pop ebp
ret 4

Function at 0x403a90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x403a9f
mov eax, 0x40d144
push 4
push dword [ebp + 8]
push 4
push 0
push eax
push dword [ecx + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403acc
lea ecx, [ebp + 8]
call fcn.004039b0
lea eax, [ebp + 8]
push 0x40e110
push eax
call fcn.00405a7b
pop ebp
ret 4

Function at 0x408ff1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x40f690
cmp edx, dword [eax]
je 0x409013
add eax, 8
inc ecx
cmp eax, 0x40f720
jl 0x409004
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x40f690]
jne 0x409141
mov eax, dword [0x411e48]
cmp eax, 1
je 0x40911b
test eax, eax
jne 0x409044
cmp dword [0x40f414], 1
je 0x40911b
cmp edx, 0xfc
je 0x409141
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40907b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040a630
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00405e00
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4090be
lea eax, [ebp - 0x1a4]
push eax
call fcn.00405e00
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d76c
push edi
call fcn.0040a830
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040a630
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040a640
lea eax, [ebp - 0xa0]
push 0x40d74c
push eax
call fcn.0040a640
push dword [esi + 0x40f694]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040a640
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040b62f
add esp, 0x2c
pop edi
jmp 0x409141
lea eax, [ebp + 8]
lea esi, [esi + 0x40f694]
push 0
push eax
push dword [esi]
call fcn.00405e00
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 0x40c416
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40c436
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00409293
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40c457
test byte [esp + 8], 2
je 0x40c457
mov dword [0x411e4c], 0xd
mov dword [0x411e50], 5
jmp 0x40c432
xor eax, eax
ret
Function at 0x42ea17
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [esi - 0x3a]
test dword [edx + 0x6dfffffc], edi
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0042e1b4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042e169
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0042e1b4
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0042e169
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
invalid

Function at 0x43b1db
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043b051

Function at 0x43d393
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0043cee6
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00405630
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00405630
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00405630
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00405630
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00405630
mov dword [0x41203c], eax
call fcn.00405630
test eax, eax
jge 0x402550
push 8
call fcn.00405630
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00405630
pop ecx
push 1
call fcn.00405630
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00405630
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00405630
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00405630
jmp 0x402495

Function at 0x405630
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x40563f
pop dword [ebp - 0x30]
mov eax, 0xbb2b5270
sub eax, 0xbaeafc31
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x375ea
push 0
mov eax, 0xbc280d06
add eax, 0x4418d3d2
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0x2870cd57
add ecx, 0xd78f7350
mov edi, eax
mov ebx, 0x6a962c9e
sub ebx, 0x6a54f0da
add ebx, dword [ebp - 0x30]
mov edx, 0xfe4cd89a
add edx, 0x2173e837
xor dword [ebp - 0x24], 0x35f70a21
mov esi, dword [ebx]
xor dword [ebp - 4], edx
sub esi, edx
mov dword [edi], esi
xor dword [ebp - 0xc], ebx
add edi, 0xad80b582
sub edi, 0xad80b57e
add ebx, 0xee969a47
add ebx, 0x116965bd
loop 0x40569e
add eax, 0x1d465d7b
sub eax, 0x1d45680c
mov ebx, eax
add eax, 0x9dcdd09a
add eax, 0x62322f6b
mov ecx, 0x422162c
sub ecx, 0x3e2162c
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x3b401aa0
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x3b45eec8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x3b4756f0]
xor eax, esp
mov dword [esp + 0x20], eax
push esi
mov eax, dword [0x3b4756f0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [ebp + 0x10]
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.3b404760
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push dword [ebp + 8]
push eax
call fcn.3b4019c0
add esp, 0x24
mov dword [esp + 0x38], 0
cmp dword [eax + 0x14], 0x10
jb 0x3b401b1d
mov eax, dword [eax]
mov dword [esp + 0xc], eax
mov ecx, esi
lea eax, [esp + 0xc]
push eax
call fcn.3b42f0f0
cmp dword [esp + 0x24], 0x10
mov dword [esi], vtable.std::runtime_error.0
jb 0x3b401b46
push dword [esp + 0x10]
call fcn.3b429620
add esp, 4
mov ecx, dword [ebp + 8]
mov eax, esi
mov dword [esi + 0xc], ecx
mov ecx, dword [ebp + 0xc]
mov dword [esi], vtable.std::_System_error.0
mov dword [esi + 0x10], ecx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.3b42ef3c
mov esp, ebp
pop ebp
ret 0xc

Function at 0x3b4020a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x3b4756f0]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push esi
push edi
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.3b404760
lea ecx, [ebp - 0x20]
call fcn.3b402270
mov edx, eax
add esp, 0x18
cmp dword [edx + 0x14], 0x10
mov edi, dword [edx + 0x10]
jb 0x3b4020ed
mov edx, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
test edi, edi
je 0x3b402109
movzx eax, byte [edx + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edi
jb 0x3b4020f8
cmp dword [ebp - 0xc], 0x10
jb 0x3b40211a
push dword [ebp - 0x20]
call fcn.3b429620
add esp, 4
mov ecx, dword [ebp - 8]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.3b42ef3c
mov esp, ebp
pop ebp
ret 4