joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100ab4e3
Capabilities:
Check os version

Disassembly:
push 0xc
mov eax, 0x100b92f3
call fcn.100b4d71
mov eax, dword [0x100fd620]
cmp eax, 0xfffffffe
jne 0x100ab568
call dword [sym.imp.kernel32.dll_GetVersion]
cmp al, 6
jae 0x100ab50e
and dword [0x100fd620], 0
xor eax, eax
jmp 0x100ab568
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
call sym.awt.dll__Java_sun_java2d_loops_MaskFill_FillAAPgram_68
pop ecx
cmp eax, ebx
jl 0x100ab532
mov ebx, dword [ebp - 0x14]
jmp 0x100ab532
push 0x10002
push dword [0x101004d4]
mov dword [0x100fd620], ebx
call sub.java.dll__JNU_GetEnv_8
movzx ecx, bl
push ecx
push str._Z_V
push str.dwmCompositionChanged
push str.sun_awt_Win32GraphicsEnvironment
push 0
push eax
call sub.java.dll_JNU_CallStaticMethodByName
add esp, 0x18
mov eax, ebx
call fcn.100b4e16
ret
Function at 0x4038f9
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4129e8]
jne 0x403903
repz ret
jmp fcn.004050b8

Function at 0x40c4a5
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00408e14
xor ebx, ebx
cmp dword [0x414760], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x40c57a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x40c4e5
xor eax, eax
jmp 0x40c63e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x40c4de
push eax
call fcn.00408db1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x414760], eax
call esi
push eax
call fcn.00408db1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x414764], eax
call esi
push eax
call fcn.00408db1
mov dword [0x414768], eax
lea eax, [ebp - 8]
push eax
call fcn.004048b5
test eax, eax
pop ecx
pop ecx
je 0x40c548
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d6d
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x40c57a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00408db1
cmp eax, ebx
pop ecx
mov dword [0x414770], eax
je 0x40c57a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00408db1
pop ecx
mov dword [0x41476c], eax
mov eax, dword [0x41476c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x40c5f3
cmp dword [0x414770], esi
je 0x40c5f3
push eax
call fcn.00408e1d
pop ecx
call eax
cmp eax, ebx
je 0x40c5c0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x414770]
call fcn.00408e1d
pop ecx
call eax
test eax, eax
je 0x40c5c0
test byte [ebp - 0x18], 1
jne 0x40c5f3
lea eax, [ebp - 0xc]
push eax
call fcn.004048ec
test eax, eax
pop ecx
je 0x40c5db
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404d6d
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x40c5ea
or dword [ebp + 0x10], 0x200000
jmp 0x40c624
or dword [ebp + 0x10], 0x40000
jmp 0x40c624
mov eax, dword [0x414764]
cmp eax, esi
je 0x40c624
push eax
call fcn.00408e1d
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40c624
mov eax, dword [0x414768]
cmp eax, esi
je 0x40c624
push dword [ebp - 4]
push eax
call fcn.00408e1d
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 [0x414760]
call fcn.00408e1d
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0x6ec00
push 0
call sub.kernel32.dll_GetCurrentProcess
call sub.kernel32.dll_VirtualAlloc
call fcn.004a107a
ret
Function at 0x401570
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
push ebx
push esi
push edi
call fcn.00401600
push 0x401810
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char_______cdecl___class_std::basic_ostream_char__struct_std::char_traits_char_____]
mov ecx, dword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea edx, [esp + 0xf]
call fcn.00401840
mov bl, byte [esp + 0xf]
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov esi, dword [sym.imp.USER32.dll_mouse_event]
sub esp, 0x10
call fcn.004012a0
add eax, 0xfffffc4a
add esp, 0x10
cmp eax, 0x3ca
ja 0x4015b1
cmp edx, 0x21c
jne 0x4015b1
movsx eax, bl
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_toupper]
add esp, 4
push eax
call edi
test ax, ax
je 0x4015b1
push 0
push 0
push 0
push 0
push 6
call esi
jmp 0x4015b1

Function at 0x40224c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40228b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40228b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40228b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x40228b
cmp dword [ecx + 0x74], 0xe
jbe 0x40228b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x10002af0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.10002af0]
mov dword [ebp - 4], eax
jmp 0x10002b1b
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xc]
cmp dword [eax + ecx], 0x4550
je 0x10002b2a
jmp 0x10002b32
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
je 0x10002b01
jmp 0x10002b32
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
mov dword [0x1003fcb4], 0xba5
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [ebp - 4], eax
jmp 0x10002b1b

Function at 0x10003050
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov dword [0x1003fcc0], 0
mov edi, dword [0x1003fcb8]
add edi, 0xffffebba
mov dword [0x1003fcb4], edi
mov byte [0x1003fcc4], 0
mov dword [0x1003fcbc], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
jmp 0x100030b0
xor eax, eax
mov dword [0x1003fcbc], 0
mov dword [ebp - 0x20], eax
jmp 0x100030e2
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov dword [0x1003fcb4], 0x124a
mov eax, dword [0x1003fcbc]
add eax, 1
mov dword [0x1003fcbc], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x100030b0
jmp 0x1000309f
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x1003fcc0]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + eax]
add edi, edx
xor edx, edx
mov ebx, dword [ebp - 0x10]
div ebx
mov esi, dword [ebp - 0x14]
movzx edx, byte [esi + edx]
add edi, edx
mov eax, edi
cdq
idiv ecx
mov dword [0x1003fcc0], edx
mov dword [0x1003fcb8], 0x20dc
mov ecx, dword [0x1003fcbc]
mov edx, dword [ebp - 0x18]
mov cl, byte [edx + ecx]
mov byte [0x1003fcc4], cl
mov dword [0x1003fcb4], 0x18c1
mov edi, dword [0x1003fcc0]
mov cl, byte [edx + edi]
mov edi, dword [0x1003fcbc]
mov byte [edx + edi], cl
mov cl, byte [0x1003fcc4]
mov edi, dword [0x1003fcc0]
mov byte [edx + edi], cl
mov edi, dword [0x1003fcbc]
add edi, 1
mov dword [0x1003fcbc], edi
cmp edi, 0x100
mov dword [ebp - 0x20], edi
jl 0x100030e2
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x100031b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [0x1003fcbc], 0
mov dword [0x1003fcc0], 0
mov dword [0x1003fcc8], 0
mov dword [0x1003fcb4], 0x21ea
mov dword [0x1003fcb8], 0x2b8e
cmp eax, 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], edi
jne 0x10003217
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov edx, dword [0x1003fcbc]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x1003fcbc], edx
mov dword [0x1003fcb4], 0x2554
mov esi, dword [0x1003fcc0]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x1003fcc0], edx
mov ecx, dword [0x1003fcbc]
mov bl, byte [edi + ecx]
mov byte [0x1003fcc4], bl
mov dword [0x1003fcb4], 0x259c
mov bl, byte [edi + edx]
mov ecx, dword [0x1003fcbc]
mov byte [edi + ecx], bl
mov dword [0x1003fcb8], 0xb33
mov bl, byte [0x1003fcc4]
mov ecx, dword [0x1003fcc0]
mov byte [edi + ecx], bl
mov ecx, dword [0x1003fcbc]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x1003fcc0]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x1003fcc8], edx
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x24]
mov bl, byte [ecx + esi]
xor bl, byte [edi + edx]
mov edx, dword [ebp - 0x18]
mov byte [edx + esi], bl
mov ecx, dword [0x1003fcb8]
add ecx, 0xffffecf1
mov dword [0x1003fcb4], ecx
add esi, 1
mov ecx, dword [ebp - 0x10]
cmp esi, ecx
mov dword [ebp - 0x20], esi
je 0x1000320f
jmp 0x10003217
Function at 0x10003960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
jmp 0x100039f7
lea eax, [0x10004279]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov esi, dword [0x1003fcb4]
add esi, 0x77a
mov dword [0x1003fcb4], esi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x40], ecx
call fcn.10003590
mov eax, dword [ebp - 0x3c]
mov dword [esp], eax
call fcn.10003010
mov ecx, eax
mov dword [0x1003fccc], eax
mov eax, esp
mov edx, dword [ebp - 0x44]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, ecx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], edx
mov dword [ebp - 0x50], ecx
jmp 0x10003a47
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, str.O_D
imul esi, eax, 0x118
mov edi, edx
add edi, esi
add edi, 0xc0
mov esi, dword [edi]
imul edi, eax, 0x118
add edx, edi
add edx, 0x9c
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x35c
mov ecx, edx
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
je 0x1000397b
jmp 0x100039f7
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
lea edx, str.O_D
imul esi, eax, 0x118
mov edi, edx
add edi, esi
add edi, 0xc0
mov esi, dword [edi]
imul edi, eax, 0x118
mov ebx, edx
add ebx, edi
add ebx, 0x88
mov edi, dword [ebx]
imul ebx, eax, 0x118
add edx, ebx
add edx, 0x9c
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x48]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
call fcn.10002fb0
mov eax, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x58]
add eax, ecx
mov edx, dword [ebp - 0x54]
add edx, 1
cmp edx, 0x35c
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], edx
jne 0x10003a47
mov eax, dword [ebp - 0x48]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x44]
mov dword [esp + 8], ecx
call fcn.10002f10
xor eax, eax
mov ecx, dword [ebp - 0x48]
add ecx, 0x13ea06
mov edx, dword [ebp - 0x30]
mov dword [edx], ecx
mov dword [edx + 4], 0x121800
mov dword [0x1003fcb4], 0x248
mov ecx, dword [ebp - 0x48]
add ecx, 0x13aa9b
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2020
mov dword [0x1003fcb8], 0x262
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1000ec86
Capabilities:
Hash data using djb2

Disassembly:
movzx eax, word [ecx]
mov edx, 0x1505
push esi
xor esi, esi
jmp 0x1000eca0
imul edx, edx, 0x21
movzx eax, ax
xor edx, eax
inc esi
movzx eax, word [ecx + esi*2]
test ax, ax
jne 0x1000ec93
imul eax, edx, 0x41c64e6d
imul ecx, edx, 0x10dcd
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x1000f8cb
Capabilities:
Hash data using djb2

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x1000f8d7
or eax, 0xffffffff
pop esi
ret
movzx eax, word [esi]
push ebx
push edi
mov edi, 0x1505
xor ebx, ebx
jmp 0x1000f8ff
movzx ecx, ax
add eax, 0xffffffbf
cmp ax, 0x19
lea edx, [ecx + 0x20]
cmova edx, ecx
imul edi, edi, 0x21
xor edi, edx
inc ebx
movzx eax, word [esi + ebx*2]
test ax, ax
jne 0x1000f8e5
imul eax, edi, 0x41c64e6d
imul ecx, edi, 0x10dcd
pop edi
pop ebx
pop esi
add eax, 0x3039
shr eax, 0x10
inc ecx
and ecx, 0xffff0000
or eax, ecx
ret

Function at 0x1001205f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x1001206e
pop dword [ebp - 0x40]
mov eax, 0xc4a05766
sub eax, 0xb49f36f8
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0xb80df423
sub dword [ebp - 0x50], 0x69bbaed8
mov dword [ebp - 0x4c], 0x5206a38c
sub dword [ebp - 0x4c], 0x1fd35747
mov dword [ebp - 0x48], 0x504ec1e6
sub dword [ebp - 0x48], 0x4027db8
mov dword [ebp - 0x44], 0xb63b7393
add dword [ebp - 0x44], 0x49c48c6d
lea eax, [ebp - 0x50]
push eax
mov eax, 0x56e2304
sub eax, 0xf56bb208
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0xee4bbbcf
sub dword [ebp - 0x50], 0x79d95279
mov dword [ebp - 0x4c], 0xaa752be7
sub dword [ebp - 0x4c], 0x6908ca72
mov dword [ebp - 0x48], 0x767b7e62
add dword [ebp - 0x48], 0xecf3ee0a
mov dword [ebp - 0x44], 0x4dd0bfa6
sub dword [ebp - 0x44], 0x4dd0bfa6
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x5113e597
add eax, 0xbeee8a91
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3e95b
push 0
call eax
mov ecx, 0x4ce7
mov edi, eax
mov esi, 0x10041c00
add esi, dword [ebp - 0x40]
mov ebx, 0xecb5ee7d
add dword [ebp - 0x24], esi
mov edx, dword [esi]
xor dword [ebp - 0x38], 0xb61eeba8
xor edx, ebx
sub dword [ebp - 0xc], ebx
mov dword [edi], edx
add dword [ebp - 0x10], edx
add edi, 4
add esi, 0x1aef2cae
sub esi, 0x1aef2caa
loop 0x1001217e
add eax, 0x1266f
xor ebx, ebx
add ebx, eax
add eax, 0x3c93ac8
sub eax, 0x3c93ac3
mov ecx, 0x10000000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret
Function at 0x401100
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov edi, eax
push ebx
sub esp, 0x684
mov dword [ebp - 0x678], edx
mov dword [ebp - 0x674], 0
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcslen]
mov ebx, eax
mov eax, dword [ebp - 0x678]
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcslen]
add ebx, eax
mov eax, dword [ebp - 0x674]
mov esi, dword [eax*4 + 0x40408c]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_wcslen]
lea eax, [ebx + eax + 2]
cmp eax, 0x104
ja 0x401288
lea eax, [ebp - 0x66c]
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.ucrtbase.dll_wcscpy]
lea eax, [ebp - 0x66c]
mov ebx, dword [sym.imp.ucrtbase.dll_wcscat]
mov dword [esp + 4], 0x404014
mov dword [esp], eax
call ebx
mov eax, dword [ebp - 0x678]
mov dword [esp + 4], eax
lea eax, [ebp - 0x66c]
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x66c]
mov dword [esp + 4], esi
mov dword [esp], eax
call ebx
lea eax, [ebp - 0x66c]
lea ebx, [ebp - 0x25c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindFirstFileExW]
sub esp, 0x18
mov dword [ebp - 0x670], eax
inc eax
jne 0x401218
mov eax, dword [ebp - 0x674]
inc eax
mov dword [ebp - 0x674], eax
mov eax, dword [ebp - 0x674]
cmp eax, 5
jne 0x40111e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea esi, [ebp - 0x464]
nop
lea eax, [ebp - 0x230]
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp], esi
call dword [sym.imp.shlwapi.dll_PathCombineW]
sub esp, 0xc
test eax, eax
je 0x401258
mov dword [esp + 4], esi
mov dword [esp], str._ls_n
call fcn.00401000
mov dword [section..bss], 1
mov eax, dword [ebp - 0x670]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
push ecx
push ecx
jne 0x401220
mov eax, dword [ebp - 0x670]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_FindClose]
push edx
jmp 0x4011f4
test byte [section..data], 2
je 0x401210
mov dword [esp + 0xc], str.Path_too_long_n
mov dword [esp + 8], str.search
mov dword [esp + 4], 0x402000
mov dword [esp], 1
call fcn.004010b0
jmp 0x401210
Function at 0x4012c0
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x224
mov ecx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
test ecx, ecx
jle 0x401310
xor eax, eax
mov ecx, dword [ebp + 8]
jmp 0x4012e5
inc eax
cmp ecx, eax
je 0x401358
mov edx, dword [edi + eax*4]
cmp word [edx], 0x2f
jne 0x4012e0
test byte [section..data], 1
mov ebx, 1
jne 0x401440
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [section..bss]
xor ebx, ebx
test eax, eax
jne 0x401300
mov dword [esp], 2
mov ebx, 1
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], 0xf
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.File_not_found_n
call sub.ucrtbase.dll_fwrite
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [ebp + 8], 1
jle 0x401310
mov esi, 1
mov dword [ebp + 0xc], edi
jmp 0x40136e
inc esi
cmp dword [ebp + 8], esi
je 0x401310
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + esi*4]
mov dword [esp + 4], 0x3a
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll_wcsrchr]
test eax, eax
je 0x4013e8
lea ebx, [eax + 2]
mov word [eax], 0
mov dword [esp + 4], str.__r_n
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x401368
mov dword [esp], edi
call dword [sym.imp.ucrtbase.dll__wcsdup]
mov edi, dword [sym.imp.ucrtbase.dll_wcstok]
mov dword [ebp - 0x218], eax
jmp 0x4013c7
mov edx, ebx
call fcn.00401100
lea eax, [ebp - 0x218]
mov dword [esp + 4], 0x404044
mov dword [esp + 8], eax
mov dword [esp], 0
call edi
test eax, eax
jne 0x4013c0
jmp 0x401368
mov dword [esp], str.PATH
call dword [sym.imp.ucrtbase.dll__wgetenv]
mov dword [esp + 4], str.__r_n
mov dword [esp], edi
mov dword [ebp - 0x21c], eax
call dword [sym.imp.ucrtbase.dll_wcspbrk]
test eax, eax
jne 0x401368
lea ebx, [ebp - 0x214]
mov dword [esp], 0x104
mov dword [esp + 4], ebx
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
test eax, eax
push edx
push edx
jne 0x401472
mov ebx, edi
mov edi, dword [ebp - 0x21c]
jmp 0x4013a6
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], str.Unsupported_option__ls_n
mov dword [esp + 8], str.wmain
mov dword [esp + 4], 0x402000
mov dword [esp], 0
call fcn.004010b0
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, edi
mov eax, ebx
call fcn.00401100
jmp 0x401431
Function at 0x401e10
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x401e80
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
and eax, 0xff
inc eax
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.004012c0
mov dword [esp], eax
call sub.ucrtbase.dll_exit
nop
nop
nop
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x10003e50
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test ch, bh
add eax, 0x788b0000
cmp al, 3
clc
movzx eax, word [edi + 0x14]
lea esi, [eax + edi + 0x18]
mov dword [ebp - 0x44], esi
call fcn.10003c59
mov esp, 0xfaa84b4
mov bh, 0x47
push es
lea eax, [eax + eax*4]
shl eax, 3
sub eax, dword [ebp + 0x10]
add eax, esi
mov dword [ebp - 0xb4], eax
mov dword [ebp - 8], eax
call fcn.10003c59
mov al, byte [eax]
sti
fsub dword [esi - 0x75]
inc edi
push es
cmp ax, bx
jbe 0x10003eb3
lea ecx, [esi + 0xc]
movzx edx, ax
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x10003ead
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x10003e9e
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4
mov byte [ebp - 0x50], 0xde
mov byte [ebp - 0x4f], 0xd4
mov byte [ebp - 0x4e], 0xd3
mov byte [ebp - 0x4d], 0xc2
mov byte [ebp - 0x4c], 0xca
mov byte [ebp - 0x4b], 0xee
mov byte [ebp - 0x4a], 0xc9
mov byte [ebp - 0x49], 0xc1
mov byte [ebp - 0x48], 0xc8
mov byte [ebp - 0x47], 0xa7
call fcn.10003c59
aam 0xda
sub dword [0x50a8458d], 0xfffd5fe8
dec dword [ebx + 0x56500c75]
push dword [ebp + 8]
call fcn.10003c1e
add esp, 0x10
lea ecx, [ebp - 0xb0]
push ecx
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0xac]
xor edx, edx
div ecx
xor edx, edx
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 8]
div ecx
test edx, edx
je 0x10003f47
inc dword [ebp - 0x8c]
imul ecx, dword [ebp - 0x8c]
mov dword [ebp + 0xc], ecx
mov byte [ebp - 0x40], bl
mov byte [ebp - 0x3f], bl
mov byte [ebp - 0x3e], 0xec
mov byte [ebp - 0x3d], bl
mov byte [ebp - 0x3c], 0x45
mov byte [ebp - 0x3b], 0x7a
mov byte [ebp - 0x3a], 0x61
mov byte [ebp - 0x39], 0x67
mov byte [ebp - 0x38], 0x66
mov byte [ebp - 0x37], 0x72
mov byte [ebp - 0x36], 0x7f
mov byte [ebp - 0x35], 0x52
mov byte [ebp - 0x34], 0x7f
mov byte [ebp - 0x33], 0x7f
mov byte [ebp - 0x32], 0x7c
mov byte [ebp - 0x31], 0x70
mov byte [ebp - 0x30], 0x13
call fcn.10003c59
xor byte [0x458d4216], bl
rcl byte [eax - 0x18], 0xc5
cld
invalid