joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4013d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x52
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x73
mov byte [ebp - 0x11], 0x75
mov byte [ebp - 0x10], 0x6d
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x54
mov byte [ebp - 0xd], 0x68
mov byte [ebp - 0xc], 0x72
mov byte [ebp - 0xb], 0x65
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0
cmp dword [0x415e9c], 0
jne 0x401432
lea eax, [ebp - 0x14]
push eax
call fcn.00401020
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415e9c], eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x415e9c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402287
mov esp, ebp
pop ebp
ret 4

Function at 0x401450
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x18], 0x47
mov byte [ebp - 0x17], 0x65
mov byte [ebp - 0x16], 0x74
mov byte [ebp - 0x15], 0x4d
mov byte [ebp - 0x14], 0x6f
mov byte [ebp - 0x13], 0x64
mov byte [ebp - 0x12], 0x75
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x65
mov byte [ebp - 0xf], 0x46
mov byte [ebp - 0xe], 0x69
mov byte [ebp - 0xd], 0x6c
mov byte [ebp - 0xc], 0x65
mov byte [ebp - 0xb], 0x4e
mov byte [ebp - 0xa], 0x61
mov byte [ebp - 9], 0x6d
mov byte [ebp - 8], 0x65
mov byte [ebp - 7], 0x57
mov byte [ebp - 6], 0
cmp dword [0x415ebc], 0
jne 0x4014ca
lea eax, [ebp - 0x18]
push eax
call fcn.00401020
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415ebc], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x415ebc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402287
mov esp, ebp
pop ebp
ret 0xc

Function at 0x4014f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x53
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x6e
mov byte [ebp - 0x11], 0x64
mov byte [ebp - 0x10], 0x4d
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x73
mov byte [ebp - 0xd], 0x73
mov byte [ebp - 0xc], 0x61
mov byte [ebp - 0xb], 0x67
mov byte [ebp - 0xa], 0x65
mov byte [ebp - 9], 0x57
mov byte [ebp - 8], 0
cmp dword [0x415eb8], 0
jne 0x401552
lea eax, [ebp - 0x14]
push eax
call fcn.00401080
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415eb8], eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [0x415eb8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402287
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401580
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x10], 0x46
mov byte [ebp - 0xf], 0x69
mov byte [ebp - 0xe], 0x6e
mov byte [ebp - 0xd], 0x64
mov byte [ebp - 0xc], 0x57
mov byte [ebp - 0xb], 0x69
mov byte [ebp - 0xa], 0x6e
mov byte [ebp - 9], 0x64
mov byte [ebp - 8], 0x6f
mov byte [ebp - 7], 0x77
mov byte [ebp - 6], 0x57
mov byte [ebp - 5], 0
cmp dword [0x415eb4], 0
jne 0x4015de
lea eax, [ebp - 0x10]
push eax
call fcn.00401080
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415eb4], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [0x415eb4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402287
mov esp, ebp
pop ebp
ret 8

Function at 0x401600
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x53
mov byte [ebp - 0x13], 0x68
mov byte [ebp - 0x12], 0x65
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0x10], 0x6c
mov byte [ebp - 0xf], 0x45
mov byte [ebp - 0xe], 0x78
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x63
mov byte [ebp - 0xb], 0x75
mov byte [ebp - 0xa], 0x74
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x57
mov byte [ebp - 7], 0
cmp dword [0x415ecc], 0
jne 0x401666
lea eax, [ebp - 0x14]
push eax
call fcn.004010e0
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415ecc], eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x415ecc]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402287
mov esp, ebp
pop ebp
ret 0x18

Function at 0x401c00
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x14], 0x47
mov byte [ebp - 0x13], 0x65
mov byte [ebp - 0x12], 0x74
mov byte [ebp - 0x11], 0x50
mov byte [ebp - 0x10], 0x72
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0x63
mov byte [ebp - 0xd], 0x65
mov byte [ebp - 0xc], 0x73
mov byte [ebp - 0xb], 0x73
mov byte [ebp - 0xa], 0x48
mov byte [ebp - 9], 0x65
mov byte [ebp - 8], 0x61
mov byte [ebp - 7], 0x70
mov byte [ebp - 6], 0
cmp dword [0x415ed4], 0
jne 0x401c6a
lea eax, [ebp - 0x14]
push eax
call fcn.00401020
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415ed4], eax
call dword [0x415ed4]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402287
mov esp, ebp
pop ebp
ret
Function at 0x401c80
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 0x10], 0x48
mov byte [ebp - 0xf], 0x65
mov byte [ebp - 0xe], 0x61
mov byte [ebp - 0xd], 0x70
mov byte [ebp - 0xc], 0x41
mov byte [ebp - 0xb], 0x6c
mov byte [ebp - 0xa], 0x6c
mov byte [ebp - 9], 0x6f
mov byte [ebp - 8], 0x63
mov byte [ebp - 7], 0
cmp dword [0x415ed8], 0
jne 0x401cd6
lea eax, [ebp - 0x10]
push eax
call fcn.00401020
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x415ed8], eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [0x415ed8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402287
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4059ea
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
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.00403993
mov dword [ebp - 0x14], eax
cmp dword [0x415e68], esi
jne 0x405add
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x405a6a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x405bbd
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x405bbd
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405bbd
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x415e68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x415e6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x415e70], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x415e78], eax
test eax, eax
je 0x405ada
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x415e74], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x405b02
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405af5
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x405b17
push 4
pop eax
jmp 0x405bbf
cmp dword [ebp - 0x14], esi
je 0x405b17
push dword [0x415e68]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x405afc
mov eax, dword [0x415e74]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x405b75
cmp dword [0x415e78], edi
je 0x405b75
push eax
call ebx
push dword [0x415e78]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x405b75
test eax, eax
je 0x405b75
call ecx
test eax, eax
je 0x405b6a
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 0x405b6a
test byte [ebp - 8], 1
jne 0x405b75
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x405ba5
mov eax, dword [0x415e6c]
cmp eax, edi
je 0x405ba2
push eax
call ebx
test eax, eax
je 0x405ba2
call eax
mov esi, eax
test esi, esi
je 0x405ba2
mov eax, dword [0x415e70]
cmp eax, edi
je 0x405ba2
push eax
call ebx
test eax, eax
je 0x405ba2
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x415e68]
call ebx
test eax, eax
je 0x405bbd
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x405bbf
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402287
mov esp, ebp
pop ebp
ret
Function at 0x403650
Capabilities:
Delete file
Enumerate gui resources

Disassembly:
mov eax, dword [0x49e4dc]
mov ecx, dword [0x49b3e4]
sub esp, 0xc2c
push ebx
push ebp
shr eax, 3
push esi
push edi
test eax, eax
jbe 0x40373f
mov edi, dword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteProfileSectionW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommState]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
cmp dword [0x49e4dc], 0x959
jne 0x403725
push 0
push 0
call edi
push 0
lea eax, [esp + 0x43c]
push eax
push 0
call ebx
push 0
push 0
call ebp
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumCalendarInfoExW]
lea ecx, [esp + 0x1c]
push ecx
push 0
call esi
push 0
push 0
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_AddConsoleAliasA]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetStdHandle]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
push 0
push 0
call esi
push 0
push 0x402cb0
call dword [sym.imp.KERNEL32.dll_BeginUpdateResourceW]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov eax, dword [esp + 0x14]
push eax
call fcn.004034a0
add dword [esp + 0x14], 8
sub dword [esp + 0x18], 1
jne 0x403690
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc2c
ret
Function at 0x4073ec
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x431238]
jne 0x4073f6
repz ret
jmp fcn.0040c815

Function at 0x40d30f
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.0040aa26
and dword [ebp - 4], 0
cmp dword [0x434278], 0
mov ebx, eax
jne 0x40d3c0
push 0x4024b4
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40d471
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4024a8
push edi
call esi
test eax, eax
je 0x40d471
push eax
call fcn.0040a9b4
mov dword [esp], 0x402498
push edi
mov dword [0x434278], eax
call esi
push eax
call fcn.0040a9b4
mov dword [esp], 0x402484
push edi
mov dword [0x43427c], eax
call esi
push eax
call fcn.0040a9b4
mov dword [esp], 0x402468
push edi
mov dword [0x434280], eax
call esi
push eax
call fcn.0040a9b4
pop ecx
mov dword [0x434288], eax
test eax, eax
je 0x40d3c0
push 0x402450
push edi
call esi
push eax
call fcn.0040a9b4
pop ecx
mov dword [0x434284], eax
mov eax, dword [0x434284]
cmp eax, ebx
je 0x40d418
cmp dword [0x434288], ebx
je 0x40d418
push eax
call fcn.0040aa2f
push dword [0x434288]
mov esi, eax
call fcn.0040aa2f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40d418
test edi, edi
je 0x40d418
call esi
test eax, eax
je 0x40d40f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40d40f
test byte [ebp - 0xc], 1
jne 0x40d418
or dword [ebp + 0x10], 0x200000
jmp 0x40d451
mov eax, dword [0x43427c]
cmp eax, ebx
je 0x40d451
push eax
call fcn.0040aa2f
pop ecx
test eax, eax
je 0x40d451
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40d451
mov eax, dword [0x434280]
cmp eax, ebx
je 0x40d451
push eax
call fcn.0040aa2f
pop ecx
test eax, eax
je 0x40d451
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x434278]
call fcn.0040aa2f
pop ecx
test eax, eax
je 0x40d471
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40d473
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401040
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [esp + 0x10]
push edi
mov edi, ecx
mov ebp, 0x10
jmp 0x401060
xor eax, dword [edi]
mov ebx, eax
call fcn.00401000
xor eax, esi
add edi, 4
sub ebp, 1
mov esi, ebx
jne 0x401060
mov edx, dword [ecx + 0x40]
xor edx, eax
mov eax, dword [ecx + 0x44]
mov ecx, dword [esp + 0x18]
pop edi
xor eax, esi
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], edx
pop ebx
ret

Function at 0x401090
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
push ebp
push esi
mov esi, dword [ecx]
mov ecx, dword [esp + 0x10]
push edi
lea edi, [ecx + 0x44]
mov ebp, 0x10
lea esp, [esp]
xor eax, dword [edi]
mov ebx, eax
call fcn.00401000
xor eax, esi
sub edi, 4
sub ebp, 1
mov esi, ebx
jne 0x4010b0
mov edx, dword [ecx + 4]
xor edx, eax
mov eax, dword [ecx]
mov ecx, dword [esp + 0x18]
pop edi
xor eax, esi
pop esi
mov dword [ecx], eax
mov eax, dword [esp + 0x14]
pop ebp
mov dword [eax], edx
pop ebx
ret

Function at 0x4010e0
Capabilities:
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov eax, 0x41a258
lea ecx, [esi + 0x48]
mov edx, 0x100
mov edi, dword [eax]
mov dword [ecx], edi
add eax, 4
add ecx, 4
sub edx, 1
jne 0x4010f8
cmp eax, 0x41b258
jl 0x4010f3
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov ebp, 0x41a210
xor eax, eax
sub ebp, esi
mov dword [esp + 0x14], 0x12
movzx ecx, byte [eax + ebx]
add eax, 1
cmp eax, edi
jl 0x401134
xor eax, eax
movzx edx, byte [eax + ebx]
shl ecx, 8
add eax, 1
or edx, ecx
cmp eax, edi
jl 0x401146
xor eax, eax
movzx ecx, byte [eax + ebx]
shl edx, 8
add eax, 1
or ecx, edx
cmp eax, edi
jl 0x401158
xor eax, eax
movzx edx, byte [eax + ebx]
shl ecx, 8
add eax, 1
or edx, ecx
cmp eax, edi
jl 0x40116a
xor eax, eax
mov ecx, dword [esi + ebp]
xor ecx, edx
mov dword [esi], ecx
add esi, 4
sub dword [esp + 0x14], 1
jne 0x401127
xor esi, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x1c]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00401040
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [edi + esi*4], ecx
mov dword [edi + esi*4 + 4], edx
add esi, 2
add esp, 0xc
cmp esi, 0x12
jl 0x401185
mov ebp, edi
lea esi, [ebp + 0x4c]
mov ebx, 4
lea ecx, [ecx]
mov edi, 0x80
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebp
call fcn.00401040
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov dword [esi - 4], edx
mov dword [esi], eax
add esp, 0xc
add esi, 8
sub edi, 1
jne 0x4011c5
sub ebx, 1
jne 0x4011c0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x404890
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x419bdb
mov eax, dword fs:[0]
push eax
sub esp, 0x190
mov eax, dword [0x421560]
xor eax, esp
mov dword [esp + 0x18c], eax
push esi
mov eax, dword [0x421560]
xor eax, esp
push eax
lea eax, [esp + 0x198]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1a8]
push 0x104
lea eax, [esp + 0x94]
push 0
push eax
call fcn.00406170
push esi
push str._s_test.pwd
lea ecx, [esp + 0xa4]
push 0x104
push ecx
call fcn.00406e36
add esp, 0x1c
push 1
push 0x40
push 0x12
lea edx, [esp + 0x9c]
push edx
lea ecx, [esp + 0x18]
call fcn.00404750
push 7
push str.success
lea ecx, [esp + 0x10]
mov dword [esp + 0x1a8], 0
call fcn.00404640
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
test byte [esp + ecx + 0x10], 6
je 0x404982
push esi
push str.Error_writing_the_test_file__s__skipping_this_share_n
call fcn.00406408
add eax, 0x40
push eax
call fcn.004062b9
add esp, 0xc
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00404000
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x60], vtable.std::ios_base.0
call fcn.00418049
add esp, 4
xor al, al
jmp 0x4049f4
lea ecx, [esp + 8]
call fcn.004041c0
lea ecx, [esp + 0xc]
call fcn.00403650
test eax, eax
jne 0x4049bb
mov eax, dword [esp + 8]
mov ecx, dword [eax + 4]
mov eax, dword [esp + ecx + 0x10]
lea ecx, [esp + ecx + 8]
or eax, 2
cmp dword [ecx + 0x28], 0
jne 0x4049b3
or eax, 4
push 0
push eax
call fcn.00403b60
lea ecx, [esp + 0x90]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x5c]
mov dword [esp + 0x1a0], 0xffffffff
call fcn.00404000
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x60], vtable.std::ios_base.0
call fcn.00418049
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18c]
xor ecx, esp
call fcn.00406ee3
add esp, 0x19c
ret
Function at 0x404a20
Capabilities:
Enumerate network shares

Disassembly:
sub esp, 0x538
mov eax, dword [0x421560]
xor eax, esp
mov dword [esp + 0x534], eax
push ebx
push ebp
mov ebp, dword [esp + 0x554]
push esi
mov esi, dword [esp + 0x548]
push edi
mov edi, dword [esp + 0x554]
xor ebx, ebx
push 0x104
lea eax, [esp + 0x340]
push ebx
push eax
mov dword [esp + 0x28], edi
mov dword [esp + 0x34], ebp
mov dword [esp + 0x20], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1f], bl
call fcn.00406170
push 0x104
lea ecx, [esp + 0x144]
push ebx
push ecx
call fcn.00406170
mov edx, dword [esp + 0x568]
mov eax, dword [edi]
push edx
push ebx
push eax
call fcn.00406170
mov ecx, dword [esp + 0x57c]
mov edx, dword [ebp]
push ecx
push ebx
push edx
call fcn.00406170
push esi
push 0x41b4d8
lea eax, [esp + 0x16c]
push 0x104
push eax
call fcn.00406e36
lea eax, [esp + 0x174]
add esp, 0x40
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x404ad5
sub eax, edx
push eax
lea ecx, [esp + 0x138]
push ecx
lea edx, [esp + 0x344]
push edx
call fcn.00406cfa
add esp, 0xc
lea esp, [esp]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x1c]
push edx
push 0xffffffffffffffff
lea eax, [esp + 0x28]
push eax
push 2
lea ecx, [esp + 0x354]
push ecx
call sub.NETAPI32.dll_NetShareEnum
mov ebp, eax
cmp ebp, ebx
je 0x404b4f
cmp ebp, 0xea
je 0x404b4f
push ebp
push str.GetAvailableWriteableShare_returned_an_error_of__ld_n
call fcn.00406408
add eax, 0x40
push eax
call fcn.004062b9
add esp, 0xc
jmp 0x404c7e
mov esi, dword [esp + 0x18]
mov edi, 1
cmp dword [esp + 0x14], edi
jb 0x404c74
push 0x104
lea edx, [esp + 0x34]
push ebx
push edx
call fcn.00406170
mov eax, dword [esi]
push 0x104
push eax
lea ecx, [esp + 0x44]
push ecx
call fcn.00406a8c
lea edx, [esp + 0x48]
push str.SYSVOL
push edx
call fcn.00417109
add esp, 0x20
test eax, eax
je 0x404c12
lea eax, [esp + 0x30]
push str.NETLOGON
push eax
call fcn.00417109
add esp, 8
test eax, eax
je 0x404c12
mov eax, dword [esi + 0x18]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x404bb6
sub eax, edx
sar eax, 1
je 0x404c12
push 0x104
lea ecx, [esp + 0x23c]
push ebx
push ecx
call fcn.00406170
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x144]
push eax
push str._s_s
lea ecx, [esp + 0x250]
push 0x104
push ecx
call fcn.00406e36
lea edx, [esp + 0x258]
push edx
call fcn.00404890
add esp, 0x24
test al, al
jne 0x404c24
add edi, 1
add esi, 0x20
cmp edi, dword [esp + 0x14]
jbe 0x404b62
jmp 0x404c74
mov eax, dword [esi + 0x18]
push 0x104
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.00406a8c
mov edx, dword [esp + 0x55c]
mov ecx, dword [esp + 0x28]
push edx
mov edx, dword [ecx]
lea eax, [esp + 0x40]
push eax
push edx
call fcn.004066a0
mov eax, dword [esp + 0x570]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [edx]
lea ecx, [esp + 0x254]
push ecx
push eax
call fcn.004066a0
add esp, 0x24
mov byte [esp + 0x13], 1
mov ecx, dword [esp + 0x18]
push ecx
call sub.NETAPI32.dll_NetApiBufferFree
cmp ebp, 0xea
je 0x404b00
mov ecx, dword [esp + 0x544]
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00406ee3
add esp, 0x538
ret
Function at 0x406ee3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x421560]
jne 0x406eed
repz ret
jmp fcn.0040d355
Function at 0x40f75a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x421f48]
je 0x40f775
inc edi
cmp edi, 0x17
jb 0x40f766
cmp edi, 0x17
jae 0x40f8f5
push ebp
push 3
call fcn.00415a68
cmp eax, 1
pop ecx
je 0x40f8c1
push 3
call fcn.00415a68
test eax, eax
pop ecx
jne 0x40f7a9
cmp dword [0x421570], 1
je 0x40f8c1
cmp ebx, 0xfc
je 0x40f8f4
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x423b40
push ebp
call fcn.004089b3
add esp, 0xc
test eax, eax
je 0x40f7df
push esi
push esi
push esi
push esi
push esi
call fcn.00406efc
add esp, 0x14
push 0x104
mov esi, 0x423b59
push esi
push 0
mov byte [0x423c5d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f823
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.004089b3
add esp, 0xc
test eax, eax
je 0x40f823
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00406efc
add esp, 0x14
push esi
call fcn.00408a20
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x40f868
push esi
call fcn.00408a20
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x423e54
push 0x41ca4c
sub ecx, eax
push ecx
push eax
call fcn.004128d6
add esp, 0x14
test eax, eax
je 0x40f868
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00406efc
add esp, 0x14
jmp 0x40f86a
xor esi, esi
push 0x41ca48
push ebx
push ebp
call fcn.00412811
add esp, 0xc
test eax, eax
je 0x40f88a
push esi
push esi
push esi
push esi
push esi
call fcn.00406efc
add esp, 0x14
push dword [edi*8 + 0x421f4c]
push ebx
push ebp
call fcn.00412811
add esp, 0xc
test eax, eax
je 0x40f8ac
push esi
push esi
push esi
push esi
push esi
call fcn.00406efc
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004158ab
add esp, 0xc
jmp 0x40f8f4
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x40f8f4
cmp ebp, 0xffffffff
je 0x40f8f4
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x421f4c]
push dword [esi]
call fcn.00408a20
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret