joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411175
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
call fcn.004104e1
mov dword [eax + 4], esi
mov ebx, eax
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.00410c42
test byte [ebx + 0x20], 0x30
jne 0x4111b2
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll_longjmp]
mov eax, dword [0x485214]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x411246
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
jne 0x4111ee
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x4111e4
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov esi, dword [ebx + 4]
mov dword [ebx + 0x18], eax
jmp 0x411229
mov dword [ebx + 0x68], 1
mov esi, dword [ebx + 4]
test eax, eax
je 0x411206
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
xor eax, eax
mov dword [ebx + 0x18], eax
test byte [ebx + 0x24], 4
je 0x411246
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
push ecx
mov dword [ebx + 0x14], eax
mov eax, ebx
call fcn.004105f4
xor eax, eax
mov dword [esp + 4], eax
mov eax, dword [0x485214]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
push edx
push edx
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]

Function at 0x416ec4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], ecx
cmp dword [ebp + 0x10], 0
jne 0x416edd
mov eax, 0
jmp 0x416fc1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x416f0a
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 0
jmp 0x416fc1
mov eax, dword [ebp + 8]
movzx eax, ax
mov edx, eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FindResourceA]
call eax
sub esp, 0xc
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x416f46
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 0
jmp 0x416fc1
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov edx, dword [ebp - 0xc]
mov dword [esp], edx
mov ecx, eax
call fcn.00416fc8
sub esp, 8
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadResource]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x416f95
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 0
jmp 0x416fc1
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LockResource]
call eax
sub esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x416fbe
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov eax, 0
jmp 0x416fc1
mov eax, dword [ebp - 0x18]
leave
ret 0xc
Function at 0x4173c8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x54]
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00401344
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov edx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
movzx eax, word [eax + 0x14]
movzx eax, ax
add eax, edx
add eax, 0x18
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
jmp 0x417486
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
add eax, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
add eax, edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
add edx, eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x50]
cmp eax, edx
jae 0x417462
mov eax, 0
jmp 0x41749d
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.00401344
add dword [ebp - 8], 1
add dword [ebp - 4], 0x28
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 4]
movzx eax, word [eax + 6]
movzx eax, ax
cmp dword [ebp - 8], eax
jl 0x41741b
mov eax, 1
leave
ret
Function at 0x417578
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov dword [ebp - 0x1c], ecx
mov dword [esp], str.dosHeader_n
call fcn.00415674
mov dword [esp], str.ntHeaders_n
call fcn.00415674
mov eax, dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call eax
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [sym.imp.USER32.dll_ShowWindow]
call eax
sub esp, 8
mov eax, dword [0x493028]
mov eax, dword [eax + 0x3c]
mov edx, eax
mov eax, dword [0x493028]
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], edx
mov dword [esp], str.AllocateMemoryForPE_n
call fcn.00415674
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.004176ac
mov dword [esp], str.delta_n
call fcn.00415674
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x34]
sub edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0xc], edx
mov dword [esp], str.CopyPESections_n
call fcn.00415674
mov edx, dword [0x493028]
mov eax, dword [ebp - 0x1c]
mov dword [eax + 8], edx
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.004173c8
mov dword [esp], str.PerformRelocation_n
call fcn.00415674
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.004167fc
mov dword [esp], str.LoadImports_n
call fcn.00415674
mov eax, dword [ebp - 0x1c]
mov ecx, eax
call fcn.00417304
mov dword [esp], str.entryPoint_n
call fcn.00415674
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x28]
add eax, edx
mov edx, eax
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x10], edx
mov dword [esp], str.entryFunc_n
call fcn.00415674
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc], eax
mov dword [esp], str.entryFunc___n
call fcn.00415674
mov eax, dword [ebp - 0xc]
call eax
mov eax, 1
leave
ret
Function at 0x4176ac
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x1c], ecx
mov dword [esp], str.imageSize_n
call fcn.00415674
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x50]
mov dword [ebp - 0xc], eax
mov dword [esp], str.alignment_n
call fcn.00415674
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x10], eax
mov dword [esp], str.filemapping_n
call fcn.00415674
mov dword [esp + 0x14], 0
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x40
mov dword [esp + 4], 0
mov dword [esp], 0xffffffff
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
call eax
sub esp, 0x18
mov dword [ebp - 0x14], eax
mov dword [esp], str._filemapping_n
call fcn.00415674
mov dword [esp], str.imageBase_n
call fcn.00415674
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x22
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_MapViewOfFile]
call eax
sub esp, 0x14
mov edx, dword [ebp - 0x1c]
mov dword [edx], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov dword [esp], str.if_imageBase_n
call fcn.00415674
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
je 0x4177c2
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov edx, 0
div dword [ebp - 0x10]
mov eax, edx
test eax, eax
je 0x4177c2
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
call eax
sub esp, 4
nop
leave
ret

Function at 0x452c7c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push ebx
sub esp, 0x10
mov ecx, esi
call fcn.00452ac4
mov edx, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 8], edx
mov edx, dword [ebp + 8]
mov dword [esp + 4], edx
call sub.msvcrt.dll__read
mov ebx, eax
cmp eax, 0xffffffff
jne 0x452cb5
call dword [sym.imp.msvcrt.dll__errno]
cmp dword [eax], 4
je 0x452c86
add esp, 0x10
mov eax, ebx
pop ebx
pop esi
pop ebp
ret 8
Function at 0x467284
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, ecx
push ebx
sub esp, 0x1c
mov ecx, dword [ecx]
mov ebx, dword [ebp + 8]
mov eax, ecx
not eax
test ax, 0x101
jne 0x4672a2
add dword [ebx + 8], 0xc
mov al, byte [esi]
mov byte [ebp - 0x19], al
test al, al
jns 0x4672cc
xor edx, edx
test byte [esi + 1], 2
je 0x4672be
mov eax, dword [ebx + 0x14]
mov edi, 0x64
cdq
idiv edi
mov eax, dword [esi + 4]
sub eax, 0x13
imul eax, eax, 0x64
add eax, edx
mov dword [ebx + 0x14], eax
and cx, 0x402
cmp cx, 0x400
jne 0x467363
mov al, byte [ebp - 0x19]
not eax
test al, 0x18
je 0x467344
test byte [ebp - 0x19], 4
je 0x467344
mov eax, dword [ebx + 0x14]
add eax, 0x76c
call fcn.0045253c
mov edi, dword [ebx + 0x1c]
movzx eax, al
mov edx, eax
mov dword [ebp - 0x20], eax
xor eax, eax
neg edx
and edx, 0x1a
movzx ecx, word [edx + eax*2 + 0x48b960]
cmp ecx, edi
jg 0x467319
inc eax
jmp 0x46730a
test byte [ebp - 0x19], 8
jne 0x467325
lea edx, [eax - 1]
mov dword [ebx + 0x10], edx
test byte [ebp - 0x19], 0x10
jne 0x467341
imul edx, dword [ebp - 0x20], 0xd
lea eax, [eax + edx - 1]
movzx eax, word [eax + eax + 0x48b960]
sub edi, eax
inc edi
mov dword [ebx + 0xc], edi
or byte [esi], 0x18
mov al, byte [esi]
mov edx, dword [ebx + 0x10]
mov byte [ebp - 0x19], al
test al, 8
jne 0x467355
cmp edx, 0xb
ja 0x467363
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 0x14]
call fcn.00451e5c
mov dword [ebx + 0x18], eax
mov eax, dword [esi]
and ax, 0x404
cmp ax, 0x400
jne 0x4673a4
mov edi, dword [ebx + 0x10]
test byte [ebp - 0x19], 8
jne 0x46737d
cmp edi, 0xb
ja 0x4673a4
mov eax, dword [ebx + 0x14]
add eax, 0x76c
call fcn.0045253c
mov edx, dword [ebx + 0xc]
movzx eax, al
imul eax, eax, 0xd
add eax, edi
movzx eax, word [eax + eax + 0x48b960]
lea eax, [edx + eax - 1]
mov dword [ebx + 0x1c], eax
test byte [ebp - 0x19], 0x60
je 0x467469
test byte [ebp - 0x19], 2
je 0x467469
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x20], eax
test byte [ebp - 0x19], 4
jne 0x46740e
mov al, byte [ebp - 0x19]
mov ecx, 1
xor edx, edx
shr al, 5
and eax, 1
xor eax, 1
mov edi, eax
mov eax, dword [ebp - 0x20]
call fcn.00451e5c
mov ecx, 7
sub eax, edi
mov edx, eax
mov eax, ecx
sub eax, edx
cdq
idiv ecx
mov al, byte [esi + 2]
and eax, 0x3f
dec eax
imul eax, eax, 7
lea esi, [edx + eax]
mov eax, dword [ebx + 0x18]
sub eax, edi
add eax, 7
cdq
idiv ecx
add esi, edx
mov dword [ebx + 0x1c], esi
mov al, byte [ebp - 0x19]
not eax
test al, 0x18
je 0x467469
mov eax, dword [ebp - 0x20]
add eax, 0x76c
call fcn.0045253c
xor ecx, ecx
movzx edx, al
mov eax, dword [ebx + 0x1c]
mov esi, edx
neg esi
and esi, 0x1a
movzx edi, word [esi + ecx*2 + 0x48b960]
cmp edi, eax
jg 0x467442
inc ecx
jmp 0x467433
test byte [ebp - 0x19], 8
jne 0x46744e
lea esi, [ecx - 1]
mov dword [ebx + 0x10], esi
test byte [ebp - 0x19], 0x10
jne 0x467469
imul edx, edx, 0xd
lea edx, [ecx + edx - 1]
movzx edx, word [edx + edx + 0x48b960]
sub eax, edx
inc eax
mov dword [ebx + 0xc], eax
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret 4
Function at 0x401708
Capabilities:
Encode data using xor

Disassembly:
sub cx, cx
sar edi, 0x15
mov edx, 0
add byte [eax], al
add byte [eax], al
xor edx, 0x401100
call 0x401736
add byte [eax], al
add byte [eax], dl
jnp 0x401728
add byte [0xcc00], ch
pushfd
push eax
in eax, 0x20
add byte [eax], al
jle 0x40170f
mov esi, dword [edx]
ror ax, 0xc
add edx, edi
add ecx, 1
or di, 0xffb4
cmp esi, dword [ecx]
jne 0x40173c
call 0x401767
add byte [eax], al
add byte [eax], al
xchg edi, eax
add byte [edi], al
add byte [ecx], bh
add byte [ecx - 0x43], ch
dec esp
test dword [eax], eax
add byte fs:[0x73cb2c00], dh
add byte [eax], dl
ror di, 0xf
inc ecx
xor edx, edx
xor edx, 0x30
call fcn.0040178c
xor eax, dword [eax]
invalid
Function at 0x100010a8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x100010b2
repz ret
jmp fcn.100013a7

Function at 0x1000552b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.100017f6
xor ebx, ebx
cmp dword [0x1000b628], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x10005600
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1000556b
xor eax, eax
jmp 0x100056c4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10005564
push eax
call fcn.10001793
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000b628], eax
call esi
push eax
call fcn.10001793
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000b62c], eax
call esi
push eax
call fcn.10001793
mov dword [0x1000b630], eax
lea eax, [ebp - 8]
push eax
call fcn.10001554
test eax, eax
pop ecx
pop ecx
je 0x100055ce
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002e9c
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x10005600
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10001793
cmp eax, ebx
pop ecx
mov dword [0x1000b638], eax
je 0x10005600
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10001793
pop ecx
mov dword [0x1000b634], eax
mov eax, dword [0x1000b634]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x10005679
cmp dword [0x1000b638], esi
je 0x10005679
push eax
call fcn.100017ff
pop ecx
call eax
cmp eax, ebx
je 0x10005646
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1000b638]
call fcn.100017ff
pop ecx
call eax
test eax, eax
je 0x10005646
test byte [ebp - 0x18], 1
jne 0x10005679
lea eax, [ebp - 0xc]
push eax
call fcn.1000158b
test eax, eax
pop ecx
je 0x10005661
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10002e9c
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x10005670
or dword [ebp + 0x10], 0x200000
jmp 0x100056aa
or dword [ebp + 0x10], 0x40000
jmp 0x100056aa
mov eax, dword [0x1000b62c]
cmp eax, esi
je 0x100056aa
push eax
call fcn.100017ff
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100056aa
mov eax, dword [0x1000b630]
cmp eax, esi
je 0x100056aa
push dword [ebp - 4]
push eax
call fcn.100017ff
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x1000b628]
call fcn.100017ff
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40894f
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x4085d8
or ecx, ecx
call fcn.00408969
xor dword [edi], edx
inc edi
dec ebx
or ecx, ebx
cmp edi, eax
jne fcn.0040894f
sub ebx, ebx
ret
Function at 0x401460
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x40
call sym.___main
mov dword [esp + 0x2a], 0x6d616172
mov dword [esp + 0x2e], 0x6d616120
mov word [esp + 0x32], 0x61
mov dword [esp + 0x34], 0
lea eax, [esp + 0x25]
mov dword [esp + 4], eax
mov dword [esp], 0x405064
call sym._scanf
mov dword [esp + 0x3c], 0
jmp 0x401519
mov dword [esp + 0x38], 0
jmp 0x40150d
lea edx, [esp + 0x2a]
mov eax, dword [esp + 0x3c]
add eax, edx
movzx edx, byte [eax]
lea ecx, [esp + 0x25]
mov eax, dword [esp + 0x38]
add eax, ecx
movzx eax, byte [eax]
cmp dl, al
je 0x401508
mov eax, dword [esp + 0x3c]
add eax, 1
movzx edx, byte [esp + eax + 0x2a]
mov eax, dword [esp + 0x38]
add eax, 1
movzx eax, byte [esp + eax + 0x25]
cmp dl, al
je 0x401508
lea edx, [esp + 0x2a]
mov eax, dword [esp + 0x3c]
add eax, edx
movzx eax, byte [eax]
lea ecx, [esp + 0x1b]
mov edx, dword [esp + 0x34]
add edx, ecx
mov byte [edx], al
add dword [esp + 0x38], 1
cmp dword [esp + 0x38], 4
jle 0x4014b5
add dword [esp + 0x3c], 1
lea eax, [esp + 0x2a]
mov dword [esp], eax
call sym._strlen
mov edx, eax
mov eax, dword [esp + 0x3c]
cmp edx, eax
ja 0x4014ab
lea eax, [esp + 0x1b]
mov dword [esp + 4], eax
mov dword [esp], 0x405064
call sym._printf
mov eax, 0
leave
ret
Function at 0x4096e0
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
jmp 0x409789
cmp dword [esi + 0x10], 0x1000
jne 0x409775
test byte [esi + 0x15], 1
jne 0x409775
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409734
cmp eax, 2
je 0x409734
cmp eax, 0x10
je 0x409734
cmp eax, 0x20
jne 0x409749
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409749
mov bl, 1
xor ebp, ebp
jmp 0x40975a
mov eax, dword [esi]
add eax, ebp
call fcn.004096d8
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x40974d
test bl, bl
je 0x409775
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409794
mov eax, dword [esi + 4]
cmp eax, edi
je 0x40970c
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x42e01e
nop
nop
popal
nop
nop
nop
jmp loc.00401219
Function at 0x4012f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0x218
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x214], eax
push ebx
push esi
push edi
mov edi, dword [0x40bf90]
xor ebx, ebx
push 0x20a
lea eax, [esp + 0x18]
push ebx
push eax
mov dword [esp + 0x18], ebx
call fcn.00405790
add esp, 0xc
push 0x104
lea ecx, [esp + 0x18]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push str.tpe64.dll
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401401
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push ebx
push esi
call ebp
push eax
push ebx
push 2
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [esp + 0x14], eax
test eax, eax
je 0x4013f9
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ebx, eax
test ebx, ebx
je 0x4013ea
push 0
push esi
call ebp
push 4
mov dword [edi + 0x14], eax
push 0x3000
inc eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [edi + 0x10], eax
test eax, eax
je 0x4013e3
mov edx, dword [edi + 0x14]
push edx
push ebx
push eax
call fcn.00403c60
add esp, 0xc
mov dword [esp + 0x10], 1
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
mov ecx, dword [esp + 0x220]
pop edi
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0040153d
add esp, 0x218
ret

Function at 0x401420
Capabilities:
Set current directory

Disassembly:
sub esp, 0x10c
mov eax, dword [0x40a004]
xor eax, esp
mov dword [esp + 0x108], eax
push 0x105
lea eax, [esp + 4]
push 0
push eax
call fcn.00405790
add esp, 0xc
push 0x105
lea ecx, [esp + 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [esp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401460
sub eax, edx
add eax, 0xffffffff
js 0x401480
mov cl, 0x5c
cmp byte [esp + eax], cl
je 0x40147c
sub eax, 1
jns 0x401470
jmp 0x401480
mov byte [esp + eax], 0
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, dword [esp + 0x108]
xor ecx, esp
call fcn.0040153d
add esp, 0x10c
ret
Function at 0x40e8fd
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x14], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4

Function at 0x4129f9
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x413b8c
push 1
xor ebx, ebx
push ebx
push 0x413c3c
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x412aca
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x413c2c
push eax
call dword [ecx]
test eax, eax
jl 0x412ac1
cmp byte [ebp + 8], bl
je 0x412a4c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x412a69
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x412a7b
push 0x413734
jmp 0x412a7e
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x412a93
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x412aa4
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x412ab8
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x412ae4
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x401cb0
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 sub.ucrtbase.dll__configure_narrow_argv
call sub.ucrtbase.dll__initialize_narrow_environment
call sub.ucrtbase.dll___p___argc
mov esi, dword [eax]
call sub.ucrtbase.dll___p___argv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_narrow_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
add eax, 1
mov dword [esp], eax
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401d60
mov dword [esp], eax
call 0x401d20
jmp dword [sym.imp.ucrtbase.dll_exit]