joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408947
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov esi, 0x4085d8
sub ebx, ebx
call fcn.00408968
or eax, ebx
add ebx, 0xb4ab4fe9
xor dword [ecx], esi
inc ecx
and ebx, ebx
cmp ecx, edi
jne fcn.00408947
inc eax
sub eax, eax
ret

Function at 0x10010f8
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001090
call fcn.010012e0
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x1001135
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001135
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100114d
cmp eax, 0x20b
je 0x100113a
mov dword [ebp - 0x1c], ebx
jmp 0x1001161
cmp dword [ecx + 0x84], 0xe
jbe 0x1001135
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100115b
cmp dword [ecx + 0x74], 0xe
jbe 0x1001135
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1002014], 0xffffffff
or dword [0x1002018], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1002010]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100200c]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100201c], eax
call fcn.010012dc
cmp dword [section..data], ebx
jne 0x10011bc
push fcn.010012dc
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.010012ca
push 0x1001064
push 0x1001060
call sub.msvcrt.dll__initterm
mov eax, dword [0x1002008]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x1002004]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x100105c
push 0x1001058
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x34], esi
cmp byte [esi], 0x22
jne 0x1001252
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001226
cmp al, 0x22
jne 0x1001218
cmp byte [esi], 0x22
jne 0x100122f
inc esi
mov dword [ebp - 0x34], esi
mov al, byte [esi]
cmp al, bl
je 0x1001239
cmp al, 0x20
jbe 0x100122b
mov dword [ebp - 0x4c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x4c], 1
je 0x100125d
movzx eax, word [ebp - 0x48]
jmp 0x1001260
cmp byte [esi], 0x20
jbe 0x100122f
inc esi
mov dword [ebp - 0x34], esi
jmp 0x1001252
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100127d
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x10012b2
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001319
ret
Function at 0x426970
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x41f0ae
lea edi, [esi - 0x1e0ae]
push edi
or ebp, 0xffffffff
jmp 0x426992
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x426999
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x426988
mov eax, 1
add ebx, ebx
jne 0x4269ab
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4269a0
jne 0x4269bc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4269a0
xor ecx, ecx
sub eax, 3
jb 0x4269d0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x426a42
mov ebp, eax
add ebx, ebx
jne 0x4269db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4269e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x426a0c
inc ecx
add ebx, ebx
jne 0x4269f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4269ed
jne 0x426a09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4269ed
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x426a2c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x426a1d
jmp 0x42698e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x426a2c
add edi, ecx
jmp 0x42698e
pop esi
mov edi, esi
mov ecx, 0x91d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x426a4a
cmp byte [edi], 2
jne 0x426a4a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x426a4f
lea edi, [esi + 0x24000]
mov eax, dword [edi]
or eax, eax
je 0x426abe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x26ff8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27098]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x426a7c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2709c]
or eax, eax
je 0x426ab8
mov dword [ebx], eax
add ebx, 4
jmp 0x426a99
call dword [esi + 0x270a0]
popal
jmp 0x4011cb
Function at 0x40d2ce
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419440]
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.00407cfb
mov dword [ebp - 0x14], eax
cmp dword [0x446d58], esi
jne 0x40d3c1
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40d34e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40d4a1
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40d4a1
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40d4a1
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x446d58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x446d5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x446d60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446d68], eax
test eax, eax
je 0x40d3be
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x446d64], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40d3e6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40d3d9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push 4
pop eax
jmp 0x40d4a3
cmp dword [ebp - 0x14], esi
je 0x40d3fb
push dword [0x446d58]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40d3e0
mov eax, dword [0x446d64]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40d459
cmp dword [0x446d68], edi
je 0x40d459
push eax
call ebx
push dword [0x446d68]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40d459
test eax, eax
je 0x40d459
call ecx
test eax, eax
je 0x40d44e
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 0x40d44e
test byte [ebp - 8], 1
jne 0x40d459
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40d489
mov eax, dword [0x446d5c]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
call eax
mov esi, eax
test esi, esi
je 0x40d486
mov eax, dword [0x446d60]
cmp eax, edi
je 0x40d486
push eax
call ebx
test eax, eax
je 0x40d486
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x446d58]
call ebx
test eax, eax
je 0x40d4a1
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40d4a3
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040440e
mov esp, ebp
pop ebp
ret
Function at 0x401893
Capabilities:
Encode data using xor

Disassembly:
inc eax
pop esi
xor dword [esi + 0xe], 0x55ddc19a
sub esi, 0xfffffffc
loop 0x401896
mov bl, 8
mov ebx, 0x22b773d4
mov ebp, 0xaa223e65
pop edx
lahf
pop esp
and edx, dword [ebx + ebp*2 + 0x4249c465]
xor ebp, dword [ecx + 0x24463578]
insd dword es:[edi], dx
xchg ebx, eax
sahf
nop
hlt

Function at 0x401e40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
push esi
mov esi, dword [ebp + 0xc]
and eax, 0x8d88d68d
js 0x401e7a
push esi
call fcn.00408670
cmpsb byte [esi], byte es:[edi]
sbb byte [eax], cl
mov edx, dword [0x4085c8]
mov byte [ecx - 0x7d], dl
ret 0x6840
sal byte [edi + ecx + 0x50], 0x68
push esp
rol byte [eax], cl
call dword [0xd440c164]
add esp, 0x52
push esi
call dword [sym.imp.MSVCRT.dll_exit]
pop esi
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ebx, 0x8b555ed4
push ebp
mov ebp, esp
pop es
or byte [ebx + edx*2], dl
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi + 0x27]
mov dword [ebp + 8], eax
call 0x1026a00
and byte [eax - 0x2cf4bef5], 0x15
movsb byte es:[edi], byte [esi]
or eax, dword [ecx - 0x20]
mov ebx, eax
mov eax, dword [esi + 0x14]
test eax, eax
mov edi, edx
jne 0x401f0d
invalid
mov ebp, dword [esi]
invalid

Function at 0x40ac7a
Capabilities:
Encode data using xor

Disassembly:
jne 0x40ac99
cmp dword [edi], 0xd3ff
and eax, 0xd40003ff
rol dword [eax], cl
add byte [0xd40003ff], ah
shl ecx, 0xa
or eax, ecx
mov ah, 5
adc bl, byte [ecx - 0x5742775]
add ebx, 0x10000
and dh, byte [ebp + 8]
xor dword [ebp - 0x74f81500], 0xffffffc1
cdq
loope 0x40ac83
ret
mov edi, edx
mov eax, ebx
rcl bh, cl
mov ecx, 0xb
add dl, byte [ebp + 0x42]
add dl, ah
ret 0xbec8
Function at 0x403a60
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0xa3c
mov eax, dword [0x42d0f0]
xor eax, esp
mov dword [esp + 0xa34], eax
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
jne 0x403ad7
push 0x200
lea eax, [esp + 0x23c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call sym.JkDefrag.exe_SystemErrorStr
lea ecx, [esp + 0x244]
push ecx
push str.Cannot_get_process_snapshot:__s
lea edx, [esp + 0x64c]
push 0x200
push edx
call fcn.00411311
lea eax, [esp + 0x654]
push eax
push 0
push 0
call fcn.00401420
add esp, 0x28
jmp 0x403c39
mov dword [esp + 8], 0x128
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [esp + 8]
push ecx
push esi
mov edi, eax
mov byte [esp + 0x138], 0
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x403b31
mov edi, edi
cmp edi, dword [esp + 0x10]
je 0x403b17
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403b00
jmp 0x403b31
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x134]
push 0x104
push ecx
call fcn.00411c9d
add esp, 0xc
cmp byte [esp + 0x130], 0
jne 0x403b67
lea edx, [esp + 0x130]
push edx
push str.Cannot_find_my_own_name_in_the_process_list:__s
lea eax, [esp + 0x240]
push 0x200
push eax
call fcn.00411311
lea ecx, [esp + 0x248]
push ecx
jmp 0x403c2d
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32First
cmp edi, dword [esp + 0x10]
je 0x403bd3
lea eax, [esp + 0x130]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.004112bf
add esp, 8
test eax, eax
je 0x403c02
lea edx, [esp + 0x2c]
push str.jkdefrag.exe
push edx
call fcn.004112bf
add esp, 8
test eax, eax
je 0x403c02
lea eax, [esp + 0x2c]
push str.jkdefragscreensaver.exe
push eax
call fcn.004112bf
add esp, 8
test eax, eax
je 0x403c02
lea ecx, [esp + 0x2c]
push str.jkdefragcmd.exe
push ecx
call fcn.004112bf
add esp, 8
test eax, eax
je 0x403c02
lea edx, [esp + 8]
push edx
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x403b72
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0xa34]
xor ecx, esp
call fcn.00411002
add esp, 0xa3c
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x2c]
push eax
push str.I_am_already_running:__S
lea ecx, [esp + 0x240]
push 0x200
push ecx
call fcn.00411311
lea edx, [esp + 0x248]
push edx
push 0
push 0
call fcn.00401420
add esp, 0x1c
mov ecx, dword [esp + 0xa3c]
pop edi
pop esi
xor ecx, esp
mov eax, 1
call fcn.00411002
add esp, 0xa3c
ret
Function at 0x411002
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42d0f0]
jne 0x41100c
repz ret
jmp fcn.00413595

Function at 0x41eacc
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.00414bd9
and dword [ebp - 4], 0
cmp dword [0x42ee94], 0
mov ebx, eax
jne 0x41eb7d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41ec2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41ec2e
push eax
call fcn.00414b67
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42ee94], eax
call esi
push eax
call fcn.00414b67
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42ee98], eax
call esi
push eax
call fcn.00414b67
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42ee9c], eax
call esi
push eax
call fcn.00414b67
pop ecx
mov dword [0x42eea4], eax
test eax, eax
je 0x41eb7d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00414b67
pop ecx
mov dword [0x42eea0], eax
mov eax, dword [0x42eea0]
cmp eax, ebx
je 0x41ebd5
cmp dword [0x42eea4], ebx
je 0x41ebd5
push eax
call fcn.00414be2
push dword [0x42eea4]
mov esi, eax
call fcn.00414be2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41ebd5
test edi, edi
je 0x41ebd5
call esi
test eax, eax
je 0x41ebcc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41ebcc
test byte [ebp - 0xc], 1
jne 0x41ebd5
or dword [ebp + 0x10], 0x200000
jmp 0x41ec0e
mov eax, dword [0x42ee98]
cmp eax, ebx
je 0x41ec0e
push eax
call fcn.00414be2
pop ecx
test eax, eax
je 0x41ec0e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41ec0e
mov eax, dword [0x42ee9c]
cmp eax, ebx
je 0x41ec0e
push eax
call fcn.00414be2
pop ecx
test eax, eax
je 0x41ec0e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ee94]
call fcn.00414be2
pop ecx
test eax, eax
je 0x41ec2e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41ec30
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows
Create process suspended
Get common file path
Get program files directory

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
lea ebx, [ebp - 0x220]
push ecx
sub esp, 0x29c
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x26
mov dword [esp], 0
call sub.shell32.dll_SHGetFolderPathW
sub esp, 0x14
test eax, eax
js 0x4010f7
cmp word [ebp - 0x220], 0
mov edx, ebx
je 0x401069
lea esi, [esi]
nop
add edx, 2
cmp word [edx], 0
jne 0x401060
xor eax, eax
lea esi, [esi]
nop
movzx ecx, word [eax + str.Windows_NTAccessorieswordpad.exe]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x401070
mov dword [ebp - 0x264], 0x44
lea esi, [ebp - 0x264]
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
call dword [sym.imp.kernel32.dll_GetCommandLineW]
lea edx, [ebp - 0x274]
mov dword [esp], ebx
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
sub esp, 0x28
test eax, eax
jne 0x401160
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 8], ebx
mov dword [esp + 0xc], 0x104
mov dword [esp + 4], 0x65
mov dword [esp], eax
call sub.user32.dll_LoadStringW
sub esp, 0x10
mov dword [esp + 4], ebx
mov dword [esp + 0xc], 0x10
mov dword [esp + 8], 0
mov dword [esp], 0
call sub.user32.dll_MessageBoxW
mov eax, 1
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov eax, dword [ebp - 0x274]
mov ebx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x270]
sub esp, 4
mov dword [esp], eax
call ebx
xor eax, eax
sub esp, 4
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret 0x10

Function at 0x4011c0
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.00401280
mov dword [esp], eax
call 0x401230
jmp dword [sym.imp.ucrtbase.dll_exit]
Function at 0x401280
Capabilities:
Accept command line arguments

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push esi
push ebx
push ecx
sub esp, 0x6c
call fcn.00401270
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x4012ee
xor ecx, ecx
xor edx, edx
jmp 0x4012c6
cmp al, 0x5c
jne 0x401348
add edx, 1
movzx eax, byte [ebx + 1]
add ebx, 1
test al, al
je 0x4012e3
cmp al, 9
je 0x4012ce
cmp al, 0x20
jne 0x4012b0
test ecx, ecx
je 0x4012e3
xor edx, edx
jmp 0x4012bb
add ebx, 1
movzx eax, byte [ebx]
cmp al, 9
je 0x4012e0
cmp al, 0x20
je 0x4012e0
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x30], 1
jne 0x401309
mov word [ebp - 0x2c], 1
movzx esi, word [ebp - 0x2c]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call section..text
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ecx
pop ebx
pop esi
pop ebp
lea esp, [ecx - 4]
ret
cmp al, 0x22
jne 0x4012d2
and edx, 1
jne 0x4012d2
xor ecx, 1
jmp 0x4012bb
Function at 0x405da0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4753db
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4b34c4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00433c34
push 4
mov dword [ebp - 4], 0
call fcn.00421f69
mov edi, eax
add esp, 4
test edi, edi
je 0x405e20
call fcn.004339e2
mov dword [edi], eax
call fcn.004337a1
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00433bf5
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x405e16
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00433c1d
jmp 0x405e22
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40feb0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
test edx, edx
je 0x40fed2
push esi
push edi
movzx edi, byte [ecx]
mov esi, eax
shr esi, 0x18
xor esi, edi
shl eax, 8
xor eax, dword [esi*4 + 0x4b5500]
inc ecx
dec edx
jne 0x40feb8
pop edi
pop esi
ret
Function at 0x4129c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x8c
mov eax, dword [0x4b34c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, edx
push 0x490f48
push eax
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x8c], ebx
mov dword [ebp - 0x84], ecx
call fcn.00421248
mov esi, eax
add esp, 8
test esi, esi
jne 0x412a45
test ebx, ebx
je 0x412a32
call fcn.00422870
mov edx, dword [eax]
push edx
call fcn.00422664
mov ecx, eax
add esp, 4
lea esi, [ecx + 1]
lea ecx, [ecx]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x412a20
sub ecx, esi
push ecx
push eax
mov ecx, ebx
call fcn.004059e0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042097b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x412a56
mov eax, dword [eax]
mov dword [ebp - 0x80], eax
jmp 0x412a5d
mov dword [ebp - 0x80], 0
xor eax, eax
push 0xffffffffffffffff
push eax
mov ecx, edi
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov word [ebp - 7], ax
mov byte [ebp - 5], al
call fcn.00405bc0
push 2
push 0
push esi
call fcn.0042308a
push esi
call fcn.00422f9b
push 0
push 0
push esi
mov edi, eax
call fcn.0042308a
add esp, 0x1c
test edi, edi
je 0x412ad4
push edi
call fcn.00421181
push esi
push 1
mov ebx, eax
push edi
push ebx
call fcn.00422dea
mov ecx, dword [ebp - 0x88]
add esp, 0x14
push edi
push ebx
call fcn.004059e0
push ebx
call fcn.00421a19
mov ebx, dword [ebp - 0x8c]
add esp, 4
push edi
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x7c]
push str._s_d_bytes
push edx
call fcn.00420d65
add esp, 0x10
test ebx, ebx
je 0x412b09
lea eax, [ebp - 0x7c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x412af4
sub eax, edx
push eax
lea eax, [ebp - 0x7c]
push eax
mov ecx, ebx
call fcn.004059e0
push esi
call fcn.00421ea4
mov eax, dword [ebp - 0x84]
add esp, 4
test eax, eax
je 0x412b21
mov ecx, dword [ebp - 0x80]
mov dword [eax], ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov al, 1
pop ebx
call fcn.0042097b
mov esp, ebp
pop ebp
ret