joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4085cf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x39c]
sub esp, 0x41c
mov ecx, dword [ebp + 0x3a4]
cmp ecx, dword [0x412c64]
mov eax, dword [0x411778]
push ebx
push esi
mov dword [ebp + 0x398], eax
push edi
jae 0x408795
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x412c80]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x80], ebx
je 0x408795
xor edi, edi
cmp dword [ebp + 0x3ac], edi
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], edi
jne 0x408639
xor eax, eax
jmp 0x4087a9
test al, 0x20
je 0x40864a
push 2
push edi
push edi
push ecx
call fcn.0040afd5
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x40871f
cmp dword [ebp + 0x3ac], edi
mov eax, dword [ebp + 0x3a8]
mov dword [ebp - 0x70], eax
mov dword [ebp + 0x3a4], edi
jbe 0x408766
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp + 0x3a8]
lea eax, [ebp - 0x6c]
cmp ecx, dword [ebp + 0x3ac]
jae 0x4086ac
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x40869d
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x80]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x40867f
mov edi, eax
lea eax, [ebp - 0x6c]
sub edi, eax
push 0
lea eax, [ebp - 0x78]
push eax
push edi
lea eax, [ebp - 0x6c]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4086ec
mov eax, dword [ebp - 0x78]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x4086f8
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp + 0x3a8]
xor edi, edi
cmp eax, dword [ebp + 0x3ac]
jb 0x408673
jmp 0x4086fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
xor edi, edi
mov eax, dword [ebp - 0x74]
cmp eax, edi
jne 0x408790
cmp dword [ebp + 0x3a4], edi
je 0x408766
push 5
pop eax
cmp dword [ebp + 0x3a4], eax
jne 0x408758
mov dword [0x4127f0], eax
jmp 0x40879c
push edi
lea ecx, [ebp - 0x78]
push ecx
push dword [ebp + 0x3ac]
push dword [ebp + 0x3a8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40874a
mov eax, dword [ebp - 0x78]
mov dword [ebp + 0x3a4], edi
mov dword [ebp - 0x74], eax
jmp 0x4086fa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x3a4], eax
jmp 0x4086fa
push dword [ebp + 0x3a4]
call fcn.0040af76
pop ecx
jmp 0x4087a6
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x40877e
mov eax, dword [ebp + 0x3a8]
cmp byte [eax], 0x1a
je 0x408632
mov dword [0x4127ec], 0x1c
mov dword [0x4127f0], edi
jmp 0x4087a6
sub eax, dword [ebp - 0x7c]
jmp 0x4087a9
and dword [0x4127f0], 0
mov dword [0x4127ec], 9
or eax, 0xffffffff
mov ecx, dword [ebp + 0x398]
pop edi
pop esi
pop ebx
call fcn.0040a9b2
add ebp, 0x39c
leave
ret
Function at 0x409ecd
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x409efb
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x409f02
cmp ebx, dword [eax + 4]
jae 0x409f02
xor eax, eax
jmp 0x40a0f2
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x409f13
xor eax, eax
inc eax
jmp 0x40a0f1
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x409f29
cmp ecx, edx
jae 0x40a06e
cmp dword [eax + 4], 0
je 0x409f32
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x409f1a
cmp dword [ebp + 8], 0
je 0x409f54
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x40a06e
cmp eax, esi
jae 0x40a06e
mov eax, dword [0x412890]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x409f79
cmp dword [esi*4 + 0x412898], edi
je 0x40a072
inc esi
cmp esi, eax
jl 0x409f67
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40a0ee
cmp dword [ebp - 8], 0x1000000
jne 0x40a0ee
test byte [ebp - 0xc], 0xcc
je 0x409ff7
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x40a0ee
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40a0ee
cmp word [eax + 0x18], 0x10b
jne 0x40a0ee
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x40a0ee
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x409ff7
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x409ff7
test byte [ecx + 0x27], 0x80
jne 0x40a06e
push 1
push 0x4128d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x409f0b
mov ecx, dword [0x412890]
test ecx, ecx
mov edx, ecx
jle 0x40a02b
lea eax, [ecx*4 + 0x412894]
cmp dword [eax], edi
je 0x40a02b
dec edx
sub eax, 4
test edx, edx
jg 0x40a01f
test edx, edx
jne 0x40a05c
push 0xf
pop ebx
cmp ecx, ebx
jg 0x40a038
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x40a050
lea eax, [edx*4 + 0x412898]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x40a03e
cmp ecx, 0x10
jge 0x40a05c
inc ecx
mov dword [0x412890], ecx
push 0
push 0x4128d8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x409f0b
xor eax, eax
jmp 0x40a0f1
test esi, esi
jle 0x409f0b
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x4128d8
call ebx
test eax, eax
jne 0x409f0b
cmp dword [esi*4 + 0x412898], edi
je 0x40a0c8
mov eax, dword [0x412890]
lea esi, [eax - 1]
test esi, esi
jl 0x40a0b6
cmp dword [esi*4 + 0x412898], edi
je 0x40a0b2
dec esi
jns 0x40a0a6
test esi, esi
jge 0x40a0c6
cmp eax, 0x10
jge 0x40a0c1
inc eax
mov dword [0x412890], eax
lea esi, [eax - 1]
jmp 0x40a0c8
je 0x40a0e0
xor ecx, ecx
test esi, esi
jl 0x40a0e0
lea eax, [ecx*4 + 0x412898]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x40a0ce
push 0
push 0x4128d8
call ebx
jmp 0x409f0b
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40a0f6
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x411778]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x411640]
je 0x40a12b
inc eax
cmp eax, 0x13
jb 0x40a11c
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x411640]
jne 0x40a251
mov eax, dword [0x412850]
cmp eax, 1
je 0x40a229
cmp eax, edx
jne 0x40a15b
cmp dword [0x411614], 1
je 0x40a229
cmp ecx, 0xfc
je 0x40a251
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40a191
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0040be00
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.0040a890
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40a1c5
mov eax, edi
push eax
call fcn.0040a890
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x40f8f0
push edi
call fcn.00406ae0
add esp, 0x10
push edi
call fcn.0040a890
push dword [esi + 0x411644]
mov ebx, eax
call fcn.0040a890
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00407290
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0040be00
push edi
push ebx
call fcn.0040be10
push 0x40f8d0
push ebx
call fcn.0040be10
push dword [esi + 0x411644]
push ebx
call fcn.0040be10
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.0040bcf9
add esp, 0x2c
jmp 0x40a251
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x411644]
push dword [esi]
call fcn.0040a890
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]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.0040a9b2
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x40ac61
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
push edi
push 4
pop eax
call fcn.00407290
mov esi, esp
push 0x1c
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40acfc
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x48]
mov eax, dword [0x4127f8]
lea edi, [ecx - 1]
not edi
and edi, esi
sub edi, ecx
mov esi, eax
dec esi
neg esi
sbb esi, esi
and esi, 0xfffffff1
add esi, 0x11
imul esi, ecx
add esi, ebx
cmp edi, esi
mov dword [ebp - 8], ecx
jb 0x40acfc
cmp eax, 1
je 0x40ad1d
mov dword [ebp - 4], ebx
mov ebx, 0x1000
push 0x1c
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40acfc
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
test dword [ebp - 0x18], ebx
je 0x40acc9
test byte [ebp - 0x13], 1
mov eax, dword [ebp - 0x28]
mov dword [ebp - 4], eax
je 0x40acf8
xor eax, eax
inc eax
jmp 0x40ad3c
cmp edi, eax
jae 0x40ad00
xor eax, eax
jmp 0x40ad3c
cmp eax, esi
jae 0x40ad07
mov dword [ebp - 4], esi
push 4
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x4127f8]
jmp 0x40ad20
mov dword [ebp - 4], edi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 0xc]
push ecx
inc eax
push eax
push dword [ebp - 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x58]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40ad44
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, dword [0x412c64]
push edi
jae 0x40af19
mov eax, esi
sar eax, 5
lea edi, [eax*4 + 0x412c80]
mov eax, dword [edi]
and esi, 0x1f
shl esi, 3
add eax, esi
mov dl, byte [eax + 4]
test dl, 1
je 0x40af19
and dword [ebp - 0xc], 0
cmp dword [ebp + 0x10], 0
mov ebx, dword [ebp + 0xc]
mov ecx, ebx
je 0x40adef
test dl, 2
jne 0x40adef
test dl, 0x48
je 0x40adb9
cmp byte [eax + 5], 0xa
je 0x40adb9
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea ecx, [ebx + 1]
mov dword [ebp - 0xc], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push ecx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40ae02
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop ecx
cmp eax, ecx
jne 0x40adea
mov dword [0x4127f0], ecx
jmp 0x40af20
cmp eax, 0x6d
jne 0x40adf6
xor eax, eax
jmp 0x40af2d
push eax
call fcn.0040af76
pop ecx
jmp 0x40af2a
mov eax, dword [ebp - 0x10]
mov ecx, dword [edi]
add dword [ebp - 0xc], eax
test byte [ecx + esi + 4], 0x80
je 0x40af14
test eax, eax
je 0x40ae29
cmp byte [ebx], 0xa
jne 0x40ae29
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x40ae32
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
add ecx, eax
cmp eax, ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ecx
jae 0x40af0e
mov eax, dword [ebp - 8]
mov al, byte [eax]
cmp al, 0x1a
je 0x40aefe
cmp al, 0xd
je 0x40ae64
mov byte [ebx], al
inc ebx
inc dword [ebp - 8]
jmp 0x40aef0
dec ecx
cmp dword [ebp - 8], ecx
jae 0x40ae7e
mov eax, dword [ebp - 8]
inc eax
cmp byte [eax], 0xa
jne 0x40ae79
add dword [ebp - 8], 2
jmp 0x40aed2
mov dword [ebp - 8], eax
jmp 0x40aeec
inc dword [ebp - 8]
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40aea6
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x40aeec
cmp dword [ebp - 0x10], 0
je 0x40aeec
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x40aec7
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x40aed2
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x40aeef
cmp ebx, dword [ebp + 0xc]
jne 0x40aed7
cmp byte [ebp - 1], 0xa
jne 0x40aed7
mov byte [ebx], 0xa
jmp 0x40aeef
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040b5b5
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x40aef0
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 0xc]
cmp dword [ebp - 8], ecx
jb 0x40ae48
jmp 0x40af0e
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x40af0e
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp - 0xc]
jmp 0x40af2d
and dword [0x4127f0], 0
mov dword [0x4127ec], 9
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40bcf9
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4129fc], ebx
push esi
push edi
jne 0x40bd79
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40bdb4
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4129fc], eax
je 0x40bdb4
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x412a00], eax
call esi
cmp dword [0x4127f8], 2
mov dword [0x412a04], eax
jne 0x40bd79
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x412a0c], eax
je 0x40bd79
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x412a08], eax
mov eax, dword [0x412a08]
test eax, eax
je 0x40bdbe
call eax
test eax, eax
je 0x40bda5
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x412a0c]
test eax, eax
je 0x40bda5
test byte [ebp - 8], 1
jne 0x40bdbe
cmp dword [0x412804], 4
jb 0x40bdb8
or byte [ebp + 0x12], 0x20
jmp 0x40bddd
xor eax, eax
jmp 0x40bded
or byte [ebp + 0x12], 4
jmp 0x40bddd
mov eax, dword [0x412a00]
test eax, eax
je 0x40bddd
call eax
mov ebx, eax
test ebx, ebx
je 0x40bddd
mov eax, dword [0x412a04]
test eax, eax
je 0x40bddd
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4129fc]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40c0af
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00407290
mov eax, dword [0x411778]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x412c64]
mov dword [ebp - 4], eax
jae 0x40c1f2
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x412c80]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x40c1f2
push 1
push esi
push ebx
call fcn.0040b5b5
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x40c1fc
push 2
push esi
push ebx
call fcn.0040b5b5
add esp, 0xc
cmp eax, 0xffffffff
je 0x40c1fc
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x40c19c
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00408820
push 0x8000
push ebx
call fcn.0040c20b
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x40c15b
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.004085cf
add esp, 0xc
cmp eax, 0xffffffff
je 0x40c179
sub edi, eax
test edi, edi
jg 0x40c150
jmp 0x40c18f
cmp dword [0x4127f0], 5
jne 0x40c18c
mov dword [0x4127ec], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.0040c20b
pop ecx
pop ecx
jmp 0x40c1dc
jge 0x40c1dc
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040b5b5
push ebx
call fcn.0040b202
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x40c1dc
mov dword [0x4127ec], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x4127f0], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0040b5b5
add esp, 0xc
mov eax, esi
pop edi
jmp 0x40c1ff
mov dword [0x4127ec], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040a9b2
leave
ret
Function at 0x401000
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Write file on windows

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
mov ebx, eax
sub esp, 0x5c
mov edi, dword [sym.imp.kernel32.dll_GetStdHandle]
mov dword [esp], 0xfffffff5
call edi
sub esp, 4
lea ebp, [esp + 0x4c]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebp
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_WriteConsoleW]
sub esp, 0x14
test eax, eax
je 0x401050
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [sym.imp.kernel32.dll_GetOEMCP]
mov dword [esp + 0x3c], edx
call edx
mov dword [esp + 0x1c], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp + 0x34], eax
call eax
sub esp, 0x20
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov ecx, dword fs:[0x18]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x30]
mov dword [esp + 0x38], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
je 0x401045
mov edx, dword [esp + 0x3c]
call edx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0xc], esi
mov edx, dword [esp + 0x2c]
mov dword [esp + 8], ebx
mov dword [esp + 0x1c], 0
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call ebx
sub esp, 0x20
mov dword [esp], 0xfffffff5
call edi
sub esp, 4
mov edi, dword [esp + 0x30]
mov dword [esp + 0xc], ebp
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x10], 0
mov dword [esp], eax
mov dword [esp + 4], edi
mov dword [esp + 8], edx
call dword [sym.imp.kernel32.dll_WriteFile]
sub esp, 0x14
mov ecx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402270
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_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x4022e0
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__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
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.004015b0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x403ad0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
xor eax, 0xffffffff
test ecx, ecx
mov esi, dword [ebp + 8]
je 0x403af9
xor al, byte [esi]
movzx edx, al
shr eax, 8
mov edx, dword [edx*4 + section..data]
inc esi
xor eax, edx
dec ecx
jne 0x403ae4
xor eax, 0xffffffff
pop esi
leave
ret 0xc

Function at 0x4013f5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push esp
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
xor eax, eax
mov ax, word [esp + 2]
mov dword [0x404590], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x4c], 0x30
mov eax, dword [ebp + 8]
call fcn.004013ed
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x44], 0x401306
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x24], str.Jungo
mov dword [ebp - 0x20], eax
call fcn.004013ea
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x28], edi
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
test eax, eax
je 0x4014d5
mov eax, 0x80000000
push edi
push dword [ebp - 0x38]
push edi
push edi
push eax
push eax
push eax
push eax
push 0
push str.180000
push str.Jungo
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
push 0
push eax
mov dword [0x404588], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x404588]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x4014d5
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x4014ba
mov esp, ebp
pop ebp
ret

Function at 0x401f98
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401fc1
mov al, byte [esi + 1]
inc esi
test al, al
je 0x401fb9
cmp al, 0x22
jne 0x401fad
cmp byte [esi], 0x22
jne 0x401fcb
inc esi
jmp 0x401fcb
cmp al, 0x20
jle 0x401fcb
inc esi
cmp byte [esi], 0x20
jg 0x401fc5
mov al, byte [esi]
test al, al
je 0x401fd5
cmp al, 0x20
jle 0x401fbe
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00402045
push 0x404004
push section..data
call fcn.0040202b
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x402005
movzx eax, word [ebp - 0x14]
jmp 0x402008
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.0040205d
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x416c80
Capabilities:
Encode data using xor
Encrypt data using aes via x86 extensions

Disassembly:
push ebp
push ebx
test eax, eax
je 0x4171a0
test edx, edx
je 0x4171a0
call fcn.00416c97
mov eax, 0xffffffff
pop ebx
pop ebp
ret

Function at 0x4171e0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
call fcn.00416c80
mov edx, dword [esp + 0xc]
shl ecx, 4
test eax, eax
jne 0x417251
lea eax, [edx + ecx + 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
movups xmmword [eax], xmm0
movups xmmword [edx], xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmm0, xmmword [edx]
movups xmm1, xmmword [eax]
aesimc xmm0, xmm0
aesimc xmm1, xmm1
lea edx, [edx + 0x10]
lea eax, [eax - 0x10]
movups xmmword [eax + 0x10], xmm0
movups xmmword [edx - 0x10], xmm1
cmp eax, edx
ja 0x417216
movups xmm0, xmmword [edx]
aesimc xmm0, xmm0
movups xmmword [edx], xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
xor eax, eax
ret

Function at 0x41b72f
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x669250
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x705034]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
lea edi, [ebx + 4]
lea esi, [ebp + 0xc]
mov dword [ebx], eax
movsd dword es:[edi], dword [esi]
lea ecx, [ebx + 0x18]
push 0x6c48d0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [ebx + 0x10], 0
and dword [ebx + 0x14], 0
call fcn.0042928c
push 0x6ceeaf
lea ecx, [ebx + 0x30]
call fcn.0042928c
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x41c763
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c7be
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c7af
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x41c7ab
cmp esi, ecx
jae 0x41c7af
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x41c799
cmp esi, ecx
jb 0x41c7b3
xor eax, eax
jmp 0x41c7bd
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret