joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4431d6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x44321e
call fcn.0043e6c0
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x44321e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x443261
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x44324a
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x44324a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x68], 0
je 0x44325e
mov ecx, dword [esi + 0x68]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x444169
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push 1
mov ecx, esi
test al, 1
je 0x44418d
mov eax, dword [esi]
push 0
call dword [eax + 0xe0]
test eax, eax
jne 0x44419b
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0xe0]
jmp 0x444187
xor eax, eax
inc eax
pop esi
ret

Function at 0x44bffc
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x5519a7
call fcn.00538b8a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00425e50
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x44c05e
call fcn.0043df5a
cmp eax, 1
jne 0x44c05e
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00442190
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004142b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404860
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404860
mov eax, esi
call fcn.00538c62
ret 0x10
Function at 0x44c087
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x5519a7
call fcn.00538b8a
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00425e50
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x44c0e9
call fcn.0043df5a
cmp eax, 1
jne 0x44c0e9
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push str.SoftwareClasses_
push eax
call fcn.00442190
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.004142b0
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00404860
mov dword [ebp + 8], SysStringLen
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404860
mov eax, esi
call fcn.00538c62
ret 0x14

Function at 0x452e2a
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5b88c8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x105
push esi
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x452e5f
xor eax, eax
jmp 0x452eb2
lea eax, [ebp - 0x210]
push eax
call fcn.00538cb1
cmp word [ebp + eax*2 - 0x212], 0x5c
pop ecx
je 0x452e90
push 0x566910
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0053bfc1
add esp, 0xc
test eax, eax
jne 0x452e5b
push edi
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0053bfc1
add esp, 0xc
test eax, eax
jne 0x452e5b
lea eax, [ebp - 0x210]
push eax
call fcn.00437302
pop ecx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00535a9b
leave
ret

Function at 0x4563b6
Capabilities:
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi], 0
je 0x4563f4
push 0x566ea8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x456402
push str.MoveFileTransactedA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x456402
push dword [esi]
push 2
push 0
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x456404
cmp dword [esi + 4], 0
je 0x456402
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_MoveFileA]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4a0a4c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 4], ecx
test esi, esi
jne 0x4a0a66
call fcn.0043e6c0
mov esi, dword [eax + 0xc]
push dword [0x5cd68c]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4a0a84
xor eax, eax
pop edi
pop esi
leave
ret 8
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x4a0a7c
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4a0ab1
xor esi, esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop ebx
jmp 0x4a0a7e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.004a097a
mov esi, eax
jmp 0x4a0aa3

Function at 0x4d51e5
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push esi
push edi
xor edi, edi
movzx eax, word [ecx + 0x14]
movzx esi, word [ecx + 6]
test esi, esi
lea eax, [eax + ecx + 0x18]
jbe 0x4d5220
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x4d5207
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4d5218
add edx, ecx
cmp dword [esp + 0xc], edx
jb 0x4d5222
inc edi
add eax, 0x28
cmp edi, esi
jb 0x4d51fd
xor eax, eax
pop edi
pop esi
ret

Function at 0x4d6043
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.004d51a5
cld
ja 0x4d604f
invalid
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
invalid
invalid
lodsd eax, dword [esi]
stc
invalid
Function at 0x4d6914
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x38c]
jae 0x4d6947
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
dec ebp
clc
dec ebp
clc
xor eax, ecx
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x748]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
not eax
mov ecx, dword [ebp - 0x748]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
jmp 0x4d68e8
and dword [ebp - 0x700], 0
jmp 0x4d695d
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
mov eax, dword [ebp - 0x700]
cmp eax, dword [ebp - 0x688]
jae 0x4d69af
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
movsx ecx, byte [ebp - 8]
xor eax, ecx
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
mov eax, dword [ebp - 0x6f8]
add eax, dword [ebp - 0x700]
movsx eax, byte [eax]
not eax
mov ecx, dword [ebp - 0x6f8]
add ecx, dword [ebp - 0x700]
mov byte [ecx], al
jmp 0x4d6950
and byte [ebp - 0x714], 0
and byte [ebp - 0x713], 0
mov byte [ebp - 0x712], 0x71
and byte [ebp - 0x711], 0
mov byte [ebp - 0x710], 0xc8
mov byte [ebp - 0x70f], 0xe2
mov byte [ebp - 0x70e], 0xe1
mov byte [ebp - 0x70d], 0xe1
mov byte [ebp - 0x70c], 0xea
mov byte [ebp - 0x70b], 0xc8
mov byte [ebp - 0x70a], 0xe7
mov byte [ebp - 0x709], 0xf6
mov byte [ebp - 0x708], 0xbc
mov byte [ebp - 0x707], 0x8e
call fcn.004d51a5
push esp
sbb dh, al
pop ss
and byte [ebp - 0x744], 0
and byte [ebp - 0x743], 0
mov byte [ebp - 0x742], 2
and byte [ebp - 0x741], 0
mov byte [ebp - 0x740], 0xb1
mov byte [ebp - 0x73f], 0x92
mov byte [ebp - 0x73e], 0x9c
mov byte [ebp - 0x73d], 0x99
invalid
test esp, eax
clc
invalid

Function at 0x513bd7
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push esi
mov esi, ecx
call fcn.0043a1e9
call fcn.0041a320
cmp eax, esi
pop esi
jne 0x513bf3
mov ecx, 0x5cbd20
jmp fcn.00453afb
ret
Function at 0x51c11c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x51c134
mov edi, dword [esi + 0xc]
jmp 0x51c174
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x51c14d
call fcn.00432e38
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x51c162
call fcn.00432e38
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x51c174
call fcn.00432e38
call fcn.0043e6c0
cmp dword [eax + 0x3c], 0
je 0x51c189
push edi
mov ecx, ebx
call fcn.0051afe1
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0051c036
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x51c1a7
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x7c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x51c1b3
mov edi, eax
mov dword [ebx + 0x7c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x535a9b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5b88c8]
jne 0x535aa5
repz ret
jmp fcn.0053d8c8
Function at 0x54acdf
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x5b88c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0053e6a6
and dword [ebp - 0x14], 0
cmp dword [0x5d00ec], 0
mov dword [ebp - 0x18], eax
jne 0x54ad92
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x54ae3a
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x54ae3a
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x58b1dc
push ebx
mov dword [0x5d00ec], eax
call edi
push eax
call esi
push 0x58b1c8
push ebx
mov dword [0x5d00f0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5d00f4], eax
call edi
push eax
call esi
mov dword [0x5d00fc], eax
test eax, eax
je 0x54ad92
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5d00f8], eax
mov eax, dword [0x5d00f8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x54adeb
cmp dword [0x5d00fc], ecx
je 0x54adeb
push eax
call esi
push dword [0x5d00fc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x54adeb
test ebx, ebx
je 0x54adeb
call edi
test eax, eax
je 0x54ade2
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x54ade2
test byte [ebp - 8], 1
jne 0x54adeb
or dword [ebp + 0x10], 0x200000
jmp 0x54ae1e
mov eax, dword [0x5d00f0]
cmp eax, dword [ebp - 0x18]
je 0x54ae1e
push eax
call esi
test eax, eax
je 0x54ae1e
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x54ae1e
mov eax, dword [0x5d00f4]
cmp eax, dword [ebp - 0x18]
je 0x54ae1e
push eax
call esi
test eax, eax
je 0x54ae1e
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5d00ec]
call esi
test eax, eax
je 0x54ae3a
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x54ae3c
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00535a9b
leave
ret
Function at 0x1000e870
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x1000e81f
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000e83d
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000e89b
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000e882
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000e88b
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000e895
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000e877
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000e801
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000e8e8
dec eax
je 0x1000e8df
sub eax, 3
je 0x1000e8d6
mov dword [ebp - 4], 0x40
jmp 0x1000e905
mov dword [ebp - 4], 4
jmp 0x1000e8eb
mov dword [ebp - 4], 0x20
jmp 0x1000e8eb
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000e937
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000e8b7
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000e148
dec ecx
popal
dec edx
pop edx
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1000e943
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401580
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40e260
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
inc eax
inc ebx
sub ebx, 2
dec eax
inc ebx
push 0x4598f8
push 0x4598b4
call dword [0x40f004]
push eax
call dword [section..rdata]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp - 0x14], 0
mov eax, dword [ecx]
mov edx, dword [ecx + 4]
mov dword [ebp - 0x24], edx
mov si, word [eax + 0x14]
lea esi, [esi + eax + 0x18]
mov dword [ebp - 0x18], esi
mov eax, dword [ecx]
xor ecx, ecx
mov cx, word [eax + 6]
mov eax, dword [ebp - 0x14]
cmp eax, ecx
jge 0x4016da
mov eax, dword [esi + 0x10]
test eax, eax
jne 0x401640
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax + 0x38]
test ebx, ebx
jle 0x4016c2
mov ecx, dword [esi + 0xc]
push 4
push 0x1000
add ecx, edx
push ebx
push ecx
call dword [0x40f008]
mov ecx, ebx
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esi + 8], edi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x4016c2
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
push 4
push 0x1000
add ecx, edx
push eax
push ecx
call dword [0x40f008]
mov dword [ebp - 0x1c], eax
inc eax
inc ebx
sub ebx, 2
dec eax
inc ebx
lea edx, [ebp - 0x20]
push 0x410078
push edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0x55
call fcn.00402520
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
mov esi, dword [eax + 0x14]
mov eax, ecx
add esi, edi
mov edi, dword [ebp - 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x4016b2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
ret
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
inc ecx
add esi, 0x28
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x18], esi
jmp 0x4015e8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4013f0
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4026cd
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x405040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, 0x40610d
call fcn.0040267b
push 0x4e3
call dword [sym.imp.KERNEL32.dll_SetConsoleOutputCP]
push str.title_Umaru_Helper
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor esi, esi
mov dword [ebp - 0x14], 0
add esp, 4
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
xor edi, edi
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], edi
mov dword [ebp - 4], edi
lea ebx, [esi + 0x64]
call dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
cdq
mov ecx, 0x64
idiv ecx
mov dword [ebp - 0x38], edx
cmp esi, edi
je 0x401483
mov dword [esi], edx
add esi, 4
mov dword [ebp - 0x18], esi
jmp 0x401496
lea eax, [ebp - 0x38]
push eax
push esi
lea ecx, [ebp - 0x1c]
call fcn.00401740
mov edi, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
sub ebx, 1
jne 0x401464
push str.KittyCat
lea ecx, [ebp - 0x34]
call fcn.004015e0
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xf
jbe 0x4014d8
mov edx, dword [ebp - 0x34]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x4014ce
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4014fe
push ecx
push edx
call fcn.00401bad
add esp, 8
mov ecx, dword [ebp - 0x1c]
test ecx, ecx
je 0x40150e
sub edi, ecx
mov eax, ecx
and edi, 0xfffffffc
cmp edi, 0x1000
jb 0x401504
mov ecx, dword [eax - 4]
add edi, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x401504
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edi
push ecx
call fcn.00401bad
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040191e
mov esp, ebp
pop ebp
ret

Function at 0x402325
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402364
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402364
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402364
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402364
cmp dword [ecx + 0x74], 0xe
jbe 0x402364
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401c50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401c65
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401ca6
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x401ca2
nop word [eax + eax]
cmp esi, edx
jae 0x401ca6
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x401c90
cmp esi, edx
jb 0x401cab
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x405400
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [edi]
push 1
push dword [edi + 8]
push esi
call fcn.004349c2
mov ecx, dword [edi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
cdq
sete bl
idiv dword [edi + 0x18]
mov byte [ebp - 1], bl
mov dword [edi + 0x1c], eax
test bl, bl
je 0x405561
add dword [edi + 0x14], ecx
mov edx, 0x18
push 0xffffffffffffffff
push eax
mov eax, dword [edi + 0x24]
push ecx
mov ecx, esp
push ecx
mov dword [ecx], eax
mov eax, esp
lea ecx, [edi + 0x20]
mov dword [eax], str.read
call fcn.00403650
mov ecx, dword [edi + 0x1c]
add esp, 0x10
mov edx, dword [edi + 0x18]
xor ebx, ebx
xor eax, eax
mov dword [ebp - 8], edx
test ecx, ecx
je 0x405506
dec ecx
mov dword [ebp - 0xc], ecx
xor ecx, ecx
cmp dword [ebp - 8], 1
jne 0x405487
cmp byte [esi], cl
jmp 0x40548a
cmp word [esi], cx
sete cl
test ecx, ecx
je 0x4054b4
test eax, eax
je 0x4054ad
cmp esi, eax
je 0x4054ad
mov ecx, esi
imul edx, ebx
sub ecx, eax
push ecx
push eax
sub eax, edx
push eax
call fcn.0042d680
add esp, 0xc
mov edx, dword [edi + 0x18]
inc ebx
lea eax, [edx + esi]
mov ecx, dword [ebp - 0xc]
add esi, edx
test ecx, ecx
jne 0x405477
test eax, eax
je 0x4054da
cmp esi, eax
je 0x4054da
mov ecx, dword [edi + 0x18]
sub esi, eax
imul ecx, ebx
push esi
push eax
sub eax, ecx
push eax
call fcn.0042d680
add esp, 0xc
test ebx, ebx
je 0x405506
push 0xffffffffffffffff
push ebx
push ecx
mov eax, esp
mov edx, 1
push ecx
lea ecx, [edi + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.nulls_removed
call fcn.00403650
add esp, 0x10
sub dword [edi + 0x1c], ebx
cmp dword [edi + 0x18], 1
jle 0x405555
test byte [edi + 4], 0x80
je 0x405555
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x405532
mov edx, dword [ebp + 8]
nop dword [eax]
movzx eax, word [edx + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x405520
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov esi, esp
xor edx, edx
push ecx
lea ecx, [edi + 0x20]
mov dword [esi], 0
mov esi, esp
mov dword [esi], str.endian_swap
call fcn.00403650
add esp, 0x10
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ecx, edi
call fcn.004051b0
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp + 8], 0
mov esi, edx
mov eax, dword [edi + 0x18]
mov ebx, dword [edi + 0x1c]
imul eax, ebx
mov dword [edi + 8], eax
mov eax, dword [ebp + 0xc]
test eax, eax
cmovne esi, eax
test byte [edi + 4], 0x80
je 0x405b15
test edx, edx
jne 0x405ad3
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00413d07
mov ecx, dword [edi + 0x1c]
mov ebx, eax
add ecx, ecx
mov dword [ebp + 8], ebx
push ecx
push esi
push ebx
call fcn.0042dfd0
add esp, 0x10
mov edx, ebx
mov esi, ebx
mov ecx, dword [edi + 0x1c]
test ecx, ecx
je 0x405af2
nop word [eax + eax]
movzx eax, word [edx + ecx*2 - 2]
dec ecx
rol ax, 8
mov word [edx + ecx*2], ax
test ecx, ecx
jne 0x405ae0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
mov eax, esp
xor edx, edx
push ecx
lea ecx, [edi + 0x20]
mov dword [eax], 0
mov eax, esp
mov dword [eax], str.endian_swap
call fcn.00403650
add esp, 0x10
push dword [edi]
push 1
push dword [edi + 8]
push esi
call fcn.00434caa
add esp, 0x10
cmp eax, 1
mov eax, dword [ebp + 8]
sete bl
test eax, eax
je 0x405b3b
push eax
call fcn.00413d10
add esp, 4
test bl, bl
je 0x405b74
mov eax, dword [edi + 8]
mov edx, 0x18
add dword [edi + 0x14], eax
push 0xffffffffffffffff
push dword [edi + 0x1c]
push ecx
mov ecx, dword [edi + 0x24]
mov esi, esp
push ecx
mov dword [esi], ecx
mov ecx, esp
mov dword [ecx], str.write
lea ecx, [edi + 0x20]
call fcn.00403650
add esp, 0x10
mov al, bl
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov ecx, edi
call fcn.004051b0
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret 8