joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4114e0
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [0x46c99c]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0xc0], ecx
mov eax, dword [ebp - 0xc0]
mov byte [eax + 0xba4], 2
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0xb8], esp
push str.Firmware_reflash_completed_nAfter_restarting_PC__new_F_W_will_take_effect._nDo_you_want_to_restart_your_computer_now_
call fcn.00404bd0
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc0]
add ecx, 0x878
call fcn.00406580
mov ecx, dword [ebp - 0xc0]
cmp dword [ecx + 0x1108], 1
jne 0x411560
mov ecx, dword [ebp - 0xc0]
call fcn.0040dbe0
mov edx, dword [ebp - 0xc0]
mov byte [edx + 0xba4], 1
xor eax, eax
jmp 0x411707
mov eax, dword [ebp - 0xc0]
movzx ecx, byte [eax + 0x1178]
and ecx, 4
je 0x4115a0
mov edx, dword [ebp - 0xc0]
cmp dword [edx + 0x1160], 1
jne 0x41158c
mov ecx, dword [ebp - 0xc0]
call fcn.0040dbe0
mov eax, dword [ebp - 0xc0]
mov byte [eax + 0xba4], 1
xor eax, eax
jmp 0x411707
mov ecx, dword [ebp - 0xc0]
add ecx, 0x878
mov edx, dword [ebp - 0xc0]
mov eax, dword [edx + 0x878]
mov edx, dword [eax + 0x14c]
call edx
cmp eax, 1
jne 0x411685
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x90], 2
je 0x4115f8
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
jmp 0x41166e
lea ecx, [ebp - 0xa4]
push ecx
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41166e
lea edx, [ebp - 0xb0]
push edx
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x41166e
mov dword [ebp - 0xb4], 1
mov dword [ebp - 0xa8], 2
push 0
push 0
push 0
lea eax, [ebp - 0xb4]
push eax
push 0
mov ecx, dword [ebp - 0xa4]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41166e
push 0
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 0xc0]
call fcn.0041f233
mov eax, 1
jmp 0x411707
mov edx, dword [ebp - 0xc0]
mov byte [edx + 0xba4], 1
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0xbc], esp
push str.Firmware_reflash_completed_nYou_must_restart_your_computer_nbefore_new_F_W_will_take_effect
call fcn.00404bd0
mov dword [ebp - 0xc8], eax
mov ecx, dword [ebp - 0xc0]
add ecx, 0x878
call fcn.00406580
mov ecx, dword [ebp - 0xc0]
add ecx, 0x878
mov eax, dword [ebp - 0xc0]
mov edx, dword [eax + 0x878]
mov eax, dword [edx + 0x14c]
call eax
mov ecx, dword [ebp - 0xc0]
cmp dword [ecx + 0x1160], 1
jne 0x4116f8
mov ecx, dword [ebp - 0xc0]
call fcn.0040dbe0
mov edx, dword [ebp - 0xc0]
mov byte [edx + 0xba4], 1
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0043d4c7
mov esp, ebp
pop ebp
ret
Function at 0x41a540
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
je 0x41a55d
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
jne 0x41a564
xor eax, eax
jmp 0x41a5f8
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x41a587
mov edx, dword [ebp - 0xc]
and edx, 0x10
xor eax, eax
cmp edx, 0x10
sete al
jmp 0x41a5f8
mov eax, dword [ebp + 8]
push eax
call fcn.0044078d
add esp, 4
mov dword [ebp - 8], eax
push 0x5c
mov ecx, dword [ebp - 8]
push ecx
call fcn.0041a790
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a5f3
mov edx, dword [ebp - 4]
mov byte [edx], 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
call fcn.0041a540
test eax, eax
jne 0x41a5d3
mov ecx, dword [ebp - 8]
push ecx
call fcn.0043d948
add esp, 4
xor eax, eax
jmp 0x41a5f8
mov edx, dword [ebp - 8]
push edx
call fcn.0043d948
add esp, 4
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x41a5f3
xor eax, eax
jmp 0x41a5f8
mov eax, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x41a660
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x41a692
xor eax, eax
jmp 0x41a713
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileTime]
sub eax, 1
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 0x14], eax
je 0x41a6d0
lea edx, [ebp - 8]
push edx
movzx eax, word [ebp + 0xc]
push eax
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41a6e7
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x41a706
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
mov esp, ebp
pop ebp
ret 8
Function at 0x41ba90
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
jne 0x41ba9f
xor eax, eax
pop esi
ret 0xc
mov eax, dword [0x46a2ac]
test eax, eax
je 0x41baad
call fcn.0041b940
mov edx, dword [esp + 0x10]
cmp edx, 8
mov eax, dword [esp + 8]
not eax
jb 0x41bba1
push ebx
push edi
mov edi, edx
shr edi, 3
xor ecx, ecx
mov cl, byte [esi]
mov ebx, eax
shr ebx, 8
sub edx, 8
xor ecx, eax
and ecx, 0xff
mov eax, dword [ecx*4 + 0x46e070]
xor eax, ebx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x46e070]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x46e070]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x46e070]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x46e070]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x46e070]
shr eax, 8
xor ecx, eax
xor eax, eax
mov al, byte [esi + 1]
inc esi
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x46e070]
shr ecx, 8
xor eax, ecx
xor ecx, ecx
mov cl, byte [esi + 1]
inc esi
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x46e070]
shr eax, 8
xor eax, ecx
inc esi
dec edi
jne 0x41bac7
pop edi
pop ebx
test edx, edx
je 0x41bbc1
xor ecx, ecx
mov cl, byte [esi]
xor ecx, eax
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x46e070]
shr eax, 8
xor eax, ecx
inc esi
dec edx
jne 0x41bba5
not eax
pop esi
ret 0xc
Function at 0x41faa6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41faca
cmp dword [edi + 0x54], 0
jne 0x41faca
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0042797a
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.0041fa67
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42509f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x4250e6
call fcn.0042797a
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4250e6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x425102
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00424c19
mov esi, eax
test edi, edi
je 0x425100
test ebx, ebx
je 0x425100
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x425f7d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x454e9f
call fcn.004413fd
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x425fa2
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x425fe8
lea ecx, [ebp - 0x10]
call fcn.004072b0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0041e5c9
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00404f40
mov eax, esi
call fcn.004414d5
ret 8
Function at 0x42a65b
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 0x42a6a3
call fcn.0042797a
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 0x42a6a3
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x42a6e6
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 0x42a6cf
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 0x42a6cf
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x42a6e3
mov ecx, dword [esi + 0x4c]
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 0x43d4c7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x46c99c]
jne 0x43d4d1
repz ret
jmp fcn.00444631
Function at 0x44ed04
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.0044638d
and dword [ebp - 4], 0
cmp dword [0x470d50], 0
mov ebx, eax
jne 0x44edb5
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x44ee66
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4600f4
push edi
call esi
test eax, eax
je 0x44ee66
push eax
call fcn.0044631b
mov dword [esp], 0x4600e4
push edi
mov dword [0x470d50], eax
call esi
push eax
call fcn.0044631b
mov dword [esp], 0x4600d0
push edi
mov dword [0x470d54], eax
call esi
push eax
call fcn.0044631b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x470d58], eax
call esi
push eax
call fcn.0044631b
pop ecx
mov dword [0x470d60], eax
test eax, eax
je 0x44edb5
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0044631b
pop ecx
mov dword [0x470d5c], eax
mov eax, dword [0x470d5c]
cmp eax, ebx
je 0x44ee0d
cmp dword [0x470d60], ebx
je 0x44ee0d
push eax
call fcn.00446396
push dword [0x470d60]
mov esi, eax
call fcn.00446396
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44ee0d
test edi, edi
je 0x44ee0d
call esi
test eax, eax
je 0x44ee04
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x44ee04
test byte [ebp - 0xc], 1
jne 0x44ee0d
or dword [ebp + 0x10], 0x200000
jmp 0x44ee46
mov eax, dword [0x470d54]
cmp eax, ebx
je 0x44ee46
push eax
call fcn.00446396
pop ecx
test eax, eax
je 0x44ee46
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x44ee46
mov eax, dword [0x470d58]
cmp eax, ebx
je 0x44ee46
push eax
call fcn.00446396
pop ecx
test eax, eax
je 0x44ee46
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x470d50]
call fcn.00446396
pop ecx
test eax, eax
je 0x44ee66
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x44ee68
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4012af
Capabilities:
Hide graphical window

Disassembly:
push ebp
push 0x10000
push 0x1000
push 1
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [0x403d14], eax
push 0x64
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, 0x30
push eax
mov dword [eax], ecx
add eax, 0x4c
mov ebp, eax
mov eax, 0x400000
mov dword [0x403d10], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x44], 0x4011a6
mov dword [ebp - 0x24], str.cognomen
call dword [sym.imp.USER32.dll_RegisterClassExA]
xor eax, eax
push eax
push dword [0x403d10]
push eax
push eax
push 0x190
push 0x2b2
push 0x640
push 0x9c4
push 0
push str.invocatory
push str.cognomen
push eax
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x403d18], eax
push eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
je 0x401379
mov edi, dword [sym.imp.USER32.dll_DispatchMessageA]
lea ecx, [ebp - 0x1c]
push ecx
call edi
xor eax, eax
push eax
push eax
push eax
lea edx, [ebp - 0x1c]
push edx
call dword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x401360
mov eax, dword [0x403d14]
push eax
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
pop ebp
ret 0x10

Function at 0x401499
Capabilities:
Encode data using xor

Disassembly:
mov ecx, 0x10
mov edx, esi
mov eax, 4
mov esi, 0x401116
mov edi, 0x4035f5
dec ecx
call fcn.00401cc6
mov eax, ecx
push edi
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
call fcn.004013a1
call fcn.00401c72
mov eax, 0x14
mov ecx, 0x78f
mov esi, 0x401192
mov edi, 0x4014e3
call fcn.00401cc6
xor eax, eax
xor eax, 0x17cf0b66
sub eax, 0x4a88926a
fisttp qword [edi - 0x2d]
sbb al, 0xa9
invalid

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
sub ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
Function at 0x10003090
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100696e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
mov eax, dword [esp + 0x30]
push ebp
push esi
push edi
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x10]
call fcn.1005ec0f
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0
xor ebp, ebp
call fcn.100045d0
mov ecx, dword [esp + 0x40]
mov byte [esp + 0x2c], 1
cmp ecx, 3
ja case.default.0x100030e4
jmp dword [ecx*4 + 0x1000324c]
mov al, byte [esi]
test al, al
je 0x10003112
cmp al, 0x20
je 0x100030fe
cmp al, 0xa1
jne 0x10003112
cmp byte [esi + 1], al
jne 0x10003112
test al, 0x80
je 0x1000310a
mov al, byte [esi + 1]
inc esi
test al, al
je 0x10003112
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100030f1
test ecx, ecx
je case.default.0x100030e4
mov dl, byte [esi]
xor ecx, ecx
test dl, dl
mov eax, esi
je case.default.0x100030e4
mov edi, dword [esp + 0x3c]
mov dl, byte [eax]
test dl, 0x80
je 0x10003158
cmp dl, 0xa1
jne 0x1000314c
cmp byte [eax + 1], 0xa1
jne 0x1000314c
test ecx, ecx
jne 0x10003144
mov edi, eax
mov ecx, 1
inc eax
jmp 0x1000316c
mov dl, byte [eax + 1]
inc eax
xor ecx, ecx
test dl, dl
je 0x10003186
jmp 0x1000316c
cmp dl, 0x20
jne 0x1000316a
test ecx, ecx
jne 0x10003163
mov edi, eax
mov ecx, 1
jmp 0x1000316c
xor ecx, ecx
mov dl, byte [eax + 1]
inc eax
test dl, dl
jne 0x1000312c
cmp ecx, 1
jne case.default.0x100030e4
mov dl, byte [edi]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100030e4
mov dl, byte [eax - 1]
lea edi, [eax - 1]
mov ebp, edi
mov byte [esp + 0x3c], dl
mov byte [edi], 0
jmp case.default.0x100030e4
mov al, byte [esi]
test al, al
je 0x100031de
test al, 0x80
mov byte [esp + 0x3c], al
je 0x100031c4
mov cl, byte [esi + 1]
test cl, cl
je 0x100031de
cmp al, 0xa1
jne 0x100031b4
cmp cl, al
je 0x100031c1
mov ax, word [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.100048a0
inc esi
jmp 0x100031d6
cmp al, 0x20
je 0x100031d6
mov ecx, dword [esp + 0x3c]
push ecx
lea ecx, [esp + 0x14]
call fcn.100048e0
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x1000319d
push 0
lea ecx, [esp + 0x14]
call fcn.100048e0
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.10011880
mov edx, dword [esp + 0x38]
add esp, 4
test ebp, ebp
mov dword [edx], eax
je 0x10003211
mov al, byte [esp + 0x3c]
mov byte [ebp], al
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
mov dword [esp + 0x10], 0x10070628
call fcn.100047d0
lea ecx, [esp + 0xc]
mov dword [esp + 0x2c], 0xffffffff
call fcn.1005eba1
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x24
ret
Function at 0x1000c110
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10069fdb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.1005e916
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x1000c192
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.1005c82d
mov eax, dword [eax]
push 0x100811c0
push eax
call fcn.1004f6e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.1005eba1
test bl, bl
je 0x1000c192
push 0x100811c0
lea ecx, [esp + 0xc]
call fcn.1005ef31
push 0x10084d3c
lea ecx, [esp + 0xc]
call fcn.1005ef31
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x1000c1ce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.1005eba1
jmp 0x1000c299
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x1000c252
lea edx, [esp + 0x7c]
push 0x10084d38
push edx
call fcn.1004f6e4
add esp, 8
test eax, eax
je 0x1000c252
lea eax, [esp + 0x7c]
push 0x10084d34
push eax
call fcn.1004f6e4
add esp, 8
test eax, eax
je 0x1000c252
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000c1e2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.1005eba1
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x1000ca90
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x1000caf2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x1000cb00
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x1006a05b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x1008cde0]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x1000cc38
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x1000cb66
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1005eba1
xor eax, eax
jmp 0x1000ccaf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.1005ecde
push esi
lea ecx, [esp + 0xc]
call fcn.1005ef6d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x1000cc8d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.1000ca90
test eax, eax
jne 0x1000cc8d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.1000ca90
test eax, eax
jne 0x1000cc8d
lea eax, [esp + 0x14]
push 0x10084d50
push eax
call fcn.10050720
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000cc6c
lea ecx, [esp + 0x14]
push 0x10084d4c
push ecx
call fcn.100506a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x1000cc6c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x1000cc6f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.1005ec8e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x1000cb7e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.1005eba1
xor eax, eax
jmp 0x1000ccaf
mov byte [esi], 0
push 0x10084d48
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.1005eba1
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4